forked from msanchezc/pycupid
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
39 lines (34 loc) · 817 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
languague: python
notifications:
email: false
git:
submodules: false
matrix:
include:
- os: linux
sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- os: osx
sudo: required
install:
- 'OS=`uname`;
if [ "$OS" = "Linux" ]; then
sudo docker pull $DOCKER_IMAGE;
fi
'
script:
- 'OS=`uname`;
if [ "$OS" = "Linux" ]; then
echo "Building in Linux";
sudo docker run --rm -v `pwd`:/workspace $DOCKER_IMAGE /workspace/travis/build-wheels.sh;
else
echo "Buildin in Mac";
sudo ln -s `pwd` /workspace;
/workspace/travis/build-wheels.sh;
fi
'
after_success:
- pip install twine
- (twine upload dist/* -u $PYPIUSER -p $PASSWORD --skip-existing || echo "Not last release")