forked from KernelTuner/kernel_tuner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (77 loc) · 1.97 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
sudo: false
dist: trusty
language: generic
matrix:
include:
- os: linux
env:
- MCONDA_PYTHON_MAJOR=2
- MCONDA_PYTHON_VERSION=2.7
- os: linux
env:
- MCONDA_PYTHON_MAJOR=3
- MCONDA_PYTHON_VERSION=3.6
- os: osx
env:
- MCONDA_PYTHON_MAJOR=2
- MCONDA_PYTHON_VERSION=2.7
- os: osx
env:
- MCONDA_PYTHON_MAJOR=3
- MCONDA_PYTHON_VERSION=3.6
# build the documentation and deploy to the gh-pages branch
- os: linux
env:
- MCONDA_PYTHON_MAJOR=3
- MCONDA_PYTHON_VERSION=3.6
- GH_PAGES_BUILD=true
- ENCRYPTION_LABEL=0a439a1e79c8
- COMMIT_AUTHOR_EMAIL="[email protected]"
addons:
apt:
packages:
- pandoc
env:
global:
- MCONDA_VERSION="latest"
- MCONDA_LINUX="Linux-x86_64"
- MCONDA_OSX="MacOSX-x86_64"
install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export MCONDA_OS=$MCONDA_LINUX
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export MCONDA_OS=$MCONDA_OSX
fi
wget "http://repo.continuum.io/miniconda/Miniconda$MCONDA_PYTHON_MAJOR-$MCONDA_VERSION-$MCONDA_OS.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 --set auto_update_conda False
- conda update -yq conda
- conda install -y python=$MCONDA_PYTHON_VERSION numpy scipy
- conda install -c conda-forge pyopencl
- |
if [[ "$GH_PAGES_BUILD" == true ]]; then
echo "installing documentation dependencies"
pip install .[doc]
else
pip install .[dev]
fi
# command to run tests
script:
- |
if [[ "$GH_PAGES_BUILD" == true ]]; then
echo "building gh-pages documentation"
cd doc
bash ./deploy.sh
else
python -m pytest test/
fi
branches:
only:
- master
notifications:
email:
on_failure: change
on_succes: never