-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
29 lines (24 loc) · 912 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
language: python
dist: trusty
env:
global:
- PACKAGE_NAME=trcrpm
# 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:
- 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:+:${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)"
# Use "edge" channel (latest master) for testing with cgpm/crosscat.
- conda build . -c probcomp/label/edge -c anaconda
after_success:
- bash conda/upload.sh