forked from scikit-hep/iminuit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 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
39
40
41
42
43
44
45
46
47
48
49
50
51
language: python
sudo: false
matrix:
include:
# TODO: remove "-dev" once 3.7 proper exists on travis-ci
- python: 3.7-dev
env: BUILD=TEST
- python: 3.7-dev
env: BUILD=SDIST
- python: 3.7-dev
env: BUILD=COVERAGE
- python: 2.7
env: BUILD=TEST
- python: 2.7
env: BUILD=SDIST
# TODO: add osx builds; (setting up multi-os envs isn't trivial, see below)
# - os: osx
# python: 2.7
# env: BUILD=ALL
#
# - os: osx
# python: 3.5
# env: BUILD=ALL
# https://docs.travis-ci.com/user/multi-os/
# This might also be useful:
# https://stackoverflow.com/questions/45257534/how-can-i-build-a-python-project-with-osx-environment-on-travis
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python ; fi
install:
- python ci-scripts/travis_install_deps.py;
script:
- if [ $BUILD == TEST ]; then
make test;
make test-notebooks;
make doc;
fi
- if [ $BUILD == COVERAGE ]; then
make test;
make test-notebooks;
make coverage;
fi
- if [ $BUILD == SDIST ]; then source ci-scripts/travis_sdist_test.sh; fi