forked from pyprob/pyprob
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
50 lines (50 loc) · 3.83 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
sudo: required
language: python
services:
- docker
install:
- pip install coverage
notifications:
email: false
slack:
secure: UGSUq791mcizjr1dD20jkir+Sm+DDJenWyVSPOC2AFVPHzV3PCduaNf9EbcUJpN07Z7FOx/rHrqBeEXLhRBjU3biwwvZ5KR8+MOr7UK+62YE+w+0ngckF2ATYDqC6bKaBBzQycAVaRuTTFiQfdyha27AnfHvCHFpu/sZJ4N1venYGYjs6nj1gxticR8xfor7HIRsJ24FURxlU5Lb3T/esTqE4zkVsZGKnKu216KoQQbpRoJWLTdalaPYfGFtgAeDU+13U3qZ9ZQmvBoi04VDFKKl7P856j1eS+Fo+VzTOdEIT6m59zLDyrEfwrbf1rWNb3ttk+coCWuPhHZ6ZMx4rdRX9k/erJQHlBFKDm/NpZcouXW5PP6YA/oOIaJHR1KLrgclB/PvWFOypxPOlkyIRHOKxY5TkxtqtTu4Tchpdk5RRCWd/koBxqaMtaiz+KY/p/m7Y8TbowiD7Bcw2CZEyrvVVfMCE4AMZvUOSvTPHzDyH0KuoRLuhpJJcQKlpgUZZvN05MAMJrhg/xnzXsUltMbn7CzdsGQwtCSOdmpiuqTfKQNsd5TAeh5DuSw7S6OykUuNnfOieCt+5cNrl/OIxy8sN0b+MzotXdO83v0AjtJLtvToIH0Zgwx5Fw6JnWv1BEsI/2vduBS/91M4HyOIVU1lrrJmD7L7ZtEWMxGgpJw=
env:
global:
- secure: sv19elMDeQz6I/LeXzwZ8t2s7UnW8r3gLwEqzUrpMOuV5tZnroQQ9T+oX/QAT7f6bPgq124EzKPt42bYh+3Ls8DHv4cIJJCXihw8xwkR5sPYsj3VUEpw/K2JyImNc+W3F+MsV5IqGATUQmG/5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DFNxZPz+efVb/nJbHkZb7ifFmyypqLj4y7X2KCmKxjniiBiljQKEgfO6Sytxh/5/ProeK0E5D/Vqkosb7U7hoOBljzfu6ay0VBPqM2tC+MJ6yA+s+tU3jQfDVDJho545rM2eVHxrgJ2n7QL5dCTkwl4hKOCo=
# before_install:
# - sudo apt-get install -y libzmq3-dev uuid-dev wget python3-gdbm
# - wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
# - bash miniconda.sh -b -p $HOME/miniconda
# - export PATH="$HOME/miniconda/bin:$PATH"
# - cp /usr/lib/python3.4/lib-dynload/_gdbm.cpython-34m-x86_64-linux-gnu.so $HOME/miniconda/lib/python3.7/lib-dynload/_gdbm.cpython-37m-x86_64-linux-gnu.so
# # - hash -r
# - pip install --progress-bar off docker
# - conda install -y pytorch-cpu=1.0.0 -c pytorch
# install:
# - pip install .
script:
- GIT_COMMIT="$(git rev-parse HEAD)"
- echo "GIT_COMMIT=$GIT_COMMIT"
- PYPROB_VERSION="$(python setup.py --version)"
- echo "PYPROB_VERSION=$PYPROB_VERSION"
- docker build -t pyprob/pyprob --build-arg GIT_COMMIT=$GIT_COMMIT --build-arg PYPROB_VERSION=$PYPROB_VERSION .
# - cd tests
# - travis_wait 60 sh run_basic.sh
# - cd ..
after_success:
- export CURRENT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH;
else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, TRAVIS_TAG=$TRAVIS_TAG, CURRENT_BRANCH=$CURRENT_BRANCH"
- if [[ "$CURRENT_BRANCH" == "master" ]] || [[ -n "$TRAVIS_TAG" ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD;
docker tag pyprob/pyprob pyprob/pyprob:latest;
docker push pyprob/pyprob:latest;
mkdir shared;
docker run --rm -it -v $PWD/shared:/shared pyprob/pyprob bash -c "mv pyprob/coverage.xml /shared";
bash <(curl -s https://codecov.io/bash);
if [[ -n "$TRAVIS_TAG" ]]; then
docker tag pyprob/pyprob pyprob/pyprob:$TRAVIS_TAG;
docker push pyprob/pyprob:$TRAVIS_TAG;
fi
fi