Skip to content

Commit 6592173

Browse files
authored
fix: Download precompiled semaphore (#73)
1 parent 694a635 commit 6592173

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ venv
1919
.vscode/tags
2020
.pytest_cache
2121
.hypothesis
22-
checkouts
22+
semaphore

.travis.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ python:
1010

1111
cache:
1212
pip: true
13-
directories:
14-
- checkouts/semaphore/target/debug/
15-
- ~/.cargo/registry/
16-
- ~/.rustup/
13+
cargo: true
1714

1815
branches:
1916
only:
@@ -44,10 +41,8 @@ matrix:
4441
script: make travis-upload-docs
4542

4643
install:
47-
- curl https://sh.rustup.rs -sSf | sh -s -- -y
48-
- . $HOME/.cargo/env
4944
- pip install tox
50-
- sh scripts/checkout-semaphore.sh
45+
- sh scripts/download-semaphore.sh
5146

5247
script:
5348
- sh scripts/runtox.sh

scripts/checkout-semaphore.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

scripts/download-semaphore.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
# Download the latest semaphore release for Travis
4+
5+
curl -s https://api.github.com/repos/getsentry/semaphore/releases/latest \
6+
| grep "Linux" \
7+
| cut -d : -f 2,3 \
8+
| tr -d \" \
9+
| wget -i - -O ./semaphore
10+
11+
chmod +x ./semaphore

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from sentry_sdk._compat import reraise
99
from sentry_sdk.transport import Transport
1010

11-
SEMAPHORE = "./checkouts/semaphore/target/debug/semaphore"
11+
SEMAPHORE = "./semaphore"
1212

1313
if not os.path.isfile(SEMAPHORE):
1414
SEMAPHORE = None

0 commit comments

Comments
 (0)