-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
38 lines (32 loc) · 1.2 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
language: python
dist: trusty
env:
global:
- PACKAGE_NAME=venture
# get all the branches referencing this commit
- REAL_BRANCH=$(git ls-remote origin | sed -n "\|$TRAVIS_COMMIT\s\+refs/heads/|{s///p}")
python:
- 2.7
install:
- sudo apt-get install -qq build-essential ccache libboost-all-dev libgsl0-dev
- mkdir -p ~/.config/matplotlib
- mkdir -p ~/.matplotlib
- touch ~/.config/matplotlib/matplotlibrc
- touch ~/.matplotlib/matplotlibrc
- touch ~/.matplotlibrc
- 'echo "backend: agg" >> ~/.config/matplotlib/matplotlibrc'
- 'echo "backend: agg" >> ~/.matplotlib/matplotlibrc'
- 'echo "backend: agg" >> ~/.matplotlibrc'
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda install -q conda=4.6.14 conda-build
script:
- export CONDA_PACKAGE_VERSION="${TRAVIS_TAG:-$(date +%Y.%m.%d)}"
# remove leading v from tags if they exist
- CONDA_PACKAGE_VERSION="$(sed s/^v// <<<$CONDA_PACKAGE_VERSION)"
- conda build . -c probcomp -c anaconda
after_success:
- bash conda/upload.sh