Skip to content

Commit 2c91dd3

Browse files
committed
ci: version passed in to Travis
1 parent db95672 commit 2c91dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ git:
66
branches:
77
only:
88
- master
9+
- travisci
910
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
1011

1112
jobs:
@@ -28,9 +29,8 @@ install:
2829
- python3 -m pip install cibuildwheel==1.5.2
2930

3031
script:
31-
- git fetch --unshallow
3232
- sed -i '/numpy/d' pyproject.toml
33-
- python3 -m cibuildwheel --output-dir dist
33+
- CIBW_ENVIRONMENT="SETUPTOOLS_SCM_PRETEND_VERSION=\"$TRAVIS_TAG\"" python3 -m cibuildwheel --output-dir dist
3434

3535
deploy:
3636
provider: pypi

0 commit comments

Comments
 (0)