forked from conda/conda-build
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
86 lines (79 loc) · 2.49 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
os: linux
language: python
python:
- 2.7
- 3.6
env:
- CONDA_VERSION=4.3.x
- CONDA_VERSION=4.2.x
matrix:
fast_finish: true
exclude:
- python: 2.7
env: CONDA_VERSION=4.3.x
include:
- python: 3.6
env:
- FLAKE8=true
- CONDA_VERSION=4.2.x
os: linux
allow_failures:
- env:
- FLAKE8=true
- CONDA_VERSION=4.2.x
python: 3.6
addons:
apt:
packages:
- attr
install:
# show which shell we are running
- ps -ef | grep $$
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-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 -p $HOME/miniconda
- mkdir $HOME/miniconda/locks
# make central lock directory not writable to simulate central "all-users" install
- chmod -w $HOME/miniconda/locks
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes
- conda config --set auto_update_conda False
- conda update -q --all
- if [ -n "$CONDA_VERSION" ]; then
rm -rf $HOME/miniconda/lib/python$TRAVIS_PYTHON_VERSION/site-packages/conda;
git clone -b $CONDA_VERSION --single-branch --depth 1000 https://github.com/conda/conda.git;
pushd conda;
$HOME/miniconda/bin/python utils/setup-testing.py install;
popd;
hash -r;
conda info;
fi
- conda install -q anaconda-client requests filelock contextlib2 jinja2 patchelf python=$TRAVIS_PYTHON_VERSION
- conda install -q pyflakes conda-verify beautifulsoup4 chardet pycrypto
- pip install pkginfo
- if [[ "$FLAKE8" == "true" ]]; then
conda install -q flake8;
else
conda install -c conda-forge -q perl;
conda install -q pytest pip pytest-cov numpy mock;
$HOME/miniconda/bin/pip install pytest-xdist pytest-catchlog pytest-mock;
pushd .. && git clone https://github.com/conda/conda_build_test_recipe && popd;
fi
- pip install --no-deps .
- conda info -a
# HACK: seem to be having issues getting MKL downloaded. Force it to be there.
- curl -L https://repo.continuum.io/pkgs/free/linux-64/mkl-11.3.3-0.tar.bz2 -o ~/miniconda/pkgs/mkl-11.3.3-0.tar.bz2
- conda index ~/miniconda/pkgs
script: ./ci/travis/run.sh
notifications:
flowdock: ef3821a08a791106512ccfc04c92eccb
git:
depth: 10000
sudo: false
after_success:
- pip install codecov
- codecov --env TRAVIS_PYTHON_VERSION