Skip to content

Commit a50288d

Browse files
committed
Here goes nothing [publish]
1 parent 9c15215 commit a50288d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ git:
66

77
sudo: false
88

9+
os:
10+
- linux
11+
- osx
12+
913
cache:
1014
directories:
1115
- mason_packages
1216
#- $HOME/.ccache
1317

18+
env:
19+
- secure: "CqhZDPctJcpXGPpmIPK5usD/O+2HYawW3434oDufVS9uG/+C7aHzKzi8cuZ7n/REHqJMzy7gJfp6DiyF2QowpnN1L2W0FSJ9VOgj4JQF2Wsupo6gJkq6/CW2Fa35PhQHsv29bfyqtIq+R5SBVAieBe/Lh2P144RwRliGRopGQ68="
20+
- secure: "idk4fdU49i546Zs6Fxha14H05eRJ1G/D6NPRaie8M8o+xySnEqf+TyA9/HU8QH7cFvroSLuHJ1U7TmwnR+sXy4XBlIfHLi4u2MN+l/q014GG7T2E2xYcTauqjB4ldToRsDQwe5Dq0gZCMsHLPspWPjL9twfp+Ds7qgcFhTsct0s="
21+
1422
addons:
1523
apt:
1624
sources:
@@ -20,6 +28,8 @@ addons:
2028
- clang-3.5
2129

2230
before_install:
31+
- pip install twine
32+
- export COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
2333
- export MASON_BUILD=true
2434
- if [[ $(uname -s) == 'Linux' ]]; then
2535
export CXX="clang++-3.5";
@@ -39,3 +49,7 @@ before_script:
3949

4050
script:
4151
- python test/visual.py -q
52+
- if [[ ${COMMIT_MESSAGE} =~ "[publish]" ]]; then
53+
python setup.py bdist_wheel;
54+
twine -u $PYPI_USER -p $PYPI_PASSWORD dist/* ;
55+
fi;

0 commit comments

Comments
 (0)