Skip to content

Commit 63a0ded

Browse files
committed
Refactor install script to be used by both travis-ci & GHA
1 parent cf003a3 commit 63a0ded

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ jobs:
3030
run: |
3131
set -exuo pipefail
3232
pip install --upgrade pip setuptools
33-
pip install -r test-requirements.txt
34-
pip install tox codecov
35-
pip install -e .
36-
# pull manylinux images that will be used, this helps passing tests which would otherwise timeout.
37-
python -c $'from tests.integration.test_manylinux import MANYLINUX_IMAGES\nfor image in MANYLINUX_IMAGES.values():\n print(image)' | xargs -L 1 docker pull
33+
./tests/install.sh
3834
3935
- name: Run tests
4036
run: ./tests/travis.sh

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ before_install:
2323
- pip install --upgrade pip setuptools
2424

2525
install:
26-
- pip install -r test-requirements.txt
27-
- pip install tox codecov
28-
- pip install -e .
29-
# pull manylinux images that will be used, this helps passing tests which would otherwise timeout.
30-
- python -c $'from tests.integration.test_manylinux import MANYLINUX_IMAGES\nfor image in MANYLINUX_IMAGES.values():\n print(image)' | xargs -L 1 docker pull
26+
- ./tests/install.sh
3127

3228
script:
3329
- tests/travis.sh

tests/install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -exuo pipefail
4+
5+
pip install -r test-requirements.txt
6+
pip install tox codecov
7+
pip install -e .
8+
# pull manylinux images that will be used, this helps passing tests which would otherwise timeout.
9+
python -c $'from tests.integration.test_manylinux import MANYLINUX_IMAGES\nfor image in MANYLINUX_IMAGES.values():\n print(image)' | xargs -L 1 docker pull

tests/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -exo pipefail
3+
set -exuo pipefail
44

55
pytest -s --cov auditwheel --cov-branch
66
auditwheel lddtree $(python -c 'import sys; print(sys.executable)')

0 commit comments

Comments
 (0)