-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
55 lines (45 loc) · 1.87 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
51
52
53
54
55
language: python
sudo: false
deploy:
provider: pypi
user: andreas.mayer
password:
secure: Muws+2oiSf4TM40LE+uhPq1PcX8jiN3TsNEFuqaccIWQCBId7RHCj620TWqDoBQNSb9BIlokVCx+nEewmQ4yzwUpQwx8FguRAJnkTNcwNJZquF4kmVJ4iyAxH/EDn2MikZU3RqA8NVqqda+eZBV9L1YbrZ5z+g9RhDr8U4PmqIlv6Cnu3lGmWt8pcL91RMkMJYDw6hKl1XS5Ghe/Ukqa+wmYwPwteCZFx9xsgSmVRDKgS0ycXdtDuoc0ewO4UWgDooMB7DKcHCWhIpYRDRxCJkGHQ4I5L6SrIF4fPtiz2pY9nNDoOHLdLfUSIjFA5X5AtIzdNbtbOIfFn9h11y1eaHXoqWibbfG49N4HR9U5sdHy03IgBE1SVejP0UF0z1F4WJh6cf3QC8XYWcZgYtNGFUUM/xsel6HCZ9xDjPx2T2NyeeCGEnMkkafBhwZBYgm+KhTy+404pDaqZYknN89jyYNJ9K72zyM4oCV643ubCU3yLfiZml7oWc7/Ui9eiGXDky2Tqv6gF420LQZTBKlcdmTcLj6trcC/SZhKU3rIqaJTaRNMHmfAF2YTBlo3OExthZyN1PKWeqjmt9wDXhQHB+S/QCnGnJMj5VkQLkvIRWS5HpB74MdEL4IjDfEyf/XnPmdXzMWqon+jjBoM7vOYA3BL6zr4C3aq1MLIdXiO6OI=
distributions: "sdist"
on:
tags: true
python:
- 2.7
- 3.5
- 3.6
env:
- CONDA_DEPS="pip pytest nose pytest-cov" PIP_DEPS="coveralls"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- command -v conda >/dev/null || { if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi;
bash miniconda.sh -b -f -p $MINICONDA; }
- conda config --set always_yes yes
- conda update conda
- conda info -a
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
- conda install --yes python=$TRAVIS_PYTHON_VERSION --file requirements.txt
- travis_retry pip install $PIP_DEPS
- python setup.py install --record installed_files.txt
script:
- py.test --cov noisyopt
after_success:
- coveralls
before_cache:
- conda clean --tarballs --packages --index-cache
- rm -rf $HOME/miniconda/pkgs/cache
- xargs rm <installed_files.txt
cache:
directories:
- "$HOME/miniconda"