forked from pyhrf/pyhrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 1.71 KB
/
.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
sudo: required
services:
- docker
before_install:
- git clone https://github.com/pyhrf/docker-pyhrf.git
- docker build --build-arg PYHRF_BRANCH=$TRAVIS_BRANCH -t pyhrf/pyhrf docker-pyhrf
script:
- docker run --rm -v ${PWD}:/output:rw -e LOCAL_USER_ID=`id -u $USER` pyhrf/pyhrf /bin/bash -c "nosetests --with-doctest --with-coverage --cover-package=pyhrf -v -s pyhrf && cp .coverage /output"
after_success:
- docker run --rm -e TRAVIS=$TRAVIS -e TRAVIS_JOB_ID=$TRAVIS_JOB_ID -v ${PWD}:/output:rw -e LOCAL_USER_ID=`id -u $USER` pyhrf/pyhrf bash -c "cd /output; coveralls"
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- if [ $TRAVIS_BRANCH == "master" ]; then docker push pyhrf/pyhrf ; fi
- if [ -n "$TRAVIS_TAG" ]; then
docker tag pyhrf/pyhrf pyhrf/pyhrf:$TRAVIS_TAG;
docker push pyhrf/pyhrf:$TRAVIS_TAG;
docker run --rm -e LOCAL_USER_ID=`id -u $USER` pyhrf/pyhrf /bin/bash -c "twine upload -u $TWINE_USERNAME -p $TWINE_PASSWORD /dist/*.tar.gz";
fi
env:
global:
- secure: bYWR3RZ1qWDfba6ayukpvfGSkoObyLTUzr0yeIXSR6a24iRoNEiwL1g/OJAtaZNMgVMSNrawvZpr3T+6Bu/3WILHrN9iK2p5q/31GwtXQJJJMsy5KH43+doP+P0siHdXbcEPt7VWpOFxS540AG/+7lzS78Qtj3XKWV6B8+pqkWs=
- secure: gOua7OkapIyvsKekFoTGRKnzcGNXfENz2eTKZ0npuJB2KfNN4OOrncaJXgW3NFbj8qugZMqmXsvGnDTbW6Ihc+iICXaHlJTKsXcLQX8bRnBBmBNoLHvypHg0xqHUpZRc1Id5A07k18PxbVx86lt3W2WTpCrsSxM9ccGgS2wvtU0=
- secure: L23/EKELfDu1zDaYT1aEz2VYTdfdhPA7OzMxFk/H+4E5VcIN7ohWKJlmhFJrSM7sUPUrGI3ja8t2f7KWwehpnKM/q8Qc2dFGhVJ3DS97Iqkc6ne1647XQF0jtFMePHVvWwOdo3QxSRtS5VmWfIiL05rLvy7hPFGpnXvE6uTueBs=
- secure: IiiG0yzemQlKnWOV9wBdTZ6eWv+iskMaJ572NTAVwVmJSBvdyRZDQqrz6qpcB906IXwgMQcRgHtQvmwEMyqADRsYIFEzIaAopoNZ3QRlhpMVXYy04Rs9JA8oPLXnQERQqN3CQlcviDK+U4CJprfOQMVq4kVw2KjjnBMh7WfxoP8=