Skip to content

Commit 12e4403

Browse files
committed
travis BUGFIX single explicit deploy build
1 parent 17b6bae commit 12e4403

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ matrix:
1313
dist: bionic
1414
sudo: required
1515
compiler: gcc
16-
env: TRAVIS_ARCH="amd64"
16+
env: TRAVIS_ARCH="amd64" DEPLOY_BUILD=TRUE
1717
- arch: arm64
1818
os: linux
1919
dist: bionic
@@ -45,7 +45,7 @@ before_install:
4545
- cd ../..
4646
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
4747
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig python3-cffi python3-setuptools python3-pip; fi
48-
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" ]; then pip3 install --user codecov==2.0.22 twine==3.1.1; export CFLAGS="-coverage"; fi
48+
- if [ "$DEPLOY_BUILD" = "TRUE" ]; then pip3 install --user codecov==2.0.22 twine==3.1.1; export CFLAGS="-coverage"; fi
4949

5050
script:
5151
- mkdir build && cd build
@@ -62,18 +62,18 @@ deploy:
6262
verbose: true
6363
on:
6464
branch: master
65-
condition: $TRAVIS_OS_NAME = linux && $CC = gcc && $TRAVIS_ARCH = amd64
65+
condition: $DEPLOY_BUILD = TRUE
6666
- provider: script
6767
script: ./packages/create-package.sh
6868
skip_cleanup: true
6969
verbose: true
7070
on:
7171
branch: master
72-
condition: $TRAVIS_OS_NAME = linux && $CC = gcc && $TRAVIS_ARCH = amd64
72+
condition: $DEPLOY_BUILD = TRUE
7373
- provider: script
7474
script: twine upload --skip-existing build/python/dist/*
7575
skip_cleanup: true
7676
verbose: true
7777
on:
7878
branch: master
79-
condition: $TRAVIS_OS_NAME = linux && $CC = gcc && $TRAVIS_ARCH = amd64
79+
condition: $DEPLOY_BUILD = TRUE

0 commit comments

Comments
 (0)