Skip to content

Commit

Permalink
Build on all supported versions only on tagged commits
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jan 18, 2020
1 parent 3ebd532 commit 445c5d0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '0.6.0-rev{build}'
version: '0.6.1-rev{build}'
clone_depth: 5
environment:
TARGET: x86_64-pc-windows-msvc
Expand Down
53 changes: 33 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,43 @@ stages:
jobs:
include:
# Linux
# - python: 3.5
# <<: *test-python
# - python: 3.6
# <<: *test-python
# - python: 3.7
# <<: *test-python
# - python: 3.8
# <<: *test-python
# - python: pypy3
# <<: *test-python
- python: 3.5
if: tag IS present
<<: *test-python
- python: 3.6
if: tag IS present
<<: *test-python
- python: 3.7
if: tag IS present
<<: *test-python
- python: 3.8
<<: *test-python
- python: pypy3
if: tag IS present
<<: *test-python
- python: pypy3.5
if: tag IS present
<<: *test-python
# OSX
- env: PYTHON=python3.5
if: tag IS present
<<: *test-python-osx
- env: PYTHON=python3.6
if: tag IS present
<<: *test-python-osx
- env: PYTHON=python3.6
if: tag IS present
<<: *test-python-osx
- env: PYTHON=python3.7
if: tag IS present
<<: *test-python-osx
- env: PYTHON=python3.8
<<: *test-python-osx
- env: PYTHON=pypy3.6
if: tag IS present
<<: *test-python-osx
#- env: PYTHON=python3.6
# <<: *test-python-osx
#- env: PYTHON=python3.6
# <<: *test-python-osx
#- env: PYTHON=python3.7
# <<: *test-python-osx
#- env: PYTHON=python3.8
# <<: *test-python-osx
#- env: PYTHON=pypy3.6
# <<: *test-python-osx
- env: PYTHON=pypy3.7
if: tag IS present
<<: *test-python-osx

deploy:
Expand Down
2 changes: 1 addition & 1 deletion ci/travis/osx/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
# --- Patch version number ---------------------------------------------------

if [ -z "$TRAVIS_TAG" ]; then
VERSION=$($PYTHON setup.py --version)-dev$(git rev-list --count --all)
VERSION=$(python setup.py --version)-dev$(git rev-list --count --all)
sed -i'.BAK' -e "s/version = $($PYTHON setup.py --version)/version = $VERSION/g" setup.cfg
fi

Expand Down

0 comments on commit 445c5d0

Please sign in to comment.