forked from conda/constructor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
82 lines (70 loc) · 2.06 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
# https://travis-ci.org/conda/constructor
language: python
sudo: false
branches:
only:
- master
env:
global:
- CONSTRUCTOR_CACHE=/tmp/constructor_travis_ci
matrix:
include:
# Linux
- os: linux
language: generic
env: PYTHON_VERSION=3.6 CONDA_VERSION=4.6
- os: linux
language: generic
env: PYTHON_VERSION=2.7 CONDA_CANARY=true
- os: linux
language: generic
env: PYTHON_VERSION=3.7 CONDA_CANARY=true
# OSX
- os: osx
language: generic
env: PYTHON_VERSION=3.6 CONDA_VERSION=4.7
allow_failures:
- os: linux
language: generic
env: PYTHON_VERSION=3.7 CONDA_CANARY=true
- os: linux
language: generic
env: PYTHON_VERSION=2.7 CONDA_CANARY=true
cache:
directories:
- $HOME/condacache/pkgs
- $HOME/.cache/pip
install:
- mkdir -p $HOME/condacache/pkgs
# Install latest miniconda
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-latest-linux-64.exe -O conda.exe;
else
wget https://repo.anaconda.com/pkgs/misc/conda-execs/conda-latest-osx-64.exe -O conda.exe;
fi
- chmod +x conda.exe
- export CONDA_PKGS_DIRS="~/condacache/pkgs"
- export CONDA_ALWAYS_YES="true"
- export CONDA_AUTO_UPDATE_CONDA="false"
- if [ "${CONDA_CANARY}" = "true" ]; then
./conda.exe create -y -q -p ~/miniconda -c conda-canary conda python=$PYTHON_VERSION;
else
./conda.exe create -y -q -p ~/miniconda -c conda-canary conda=$CONDA_VERSION python=$PYTHON_VERSION;
fi
- ./conda.exe install -y -p ~/miniconda pillow>=3.1 ruamel_yaml conda-forge::codecov pytest pytest-cov
- source "$HOME"/miniconda/bin/activate
# Install this package
- python setup.py develop
# this needs
- mkdir $HOME/miniconda/standalone_conda
- cp conda.exe $HOME/miniconda/standalone_conda/conda.exe
# diagnostics
- conda info
- conda init
- source "$HOME"/miniconda/bin/activate
- conda list
script:
- pytest --cov=constructor constructor
- python scripts/run_examples.py
after_success:
- codecov