-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
49 lines (43 loc) · 1.12 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
notifications:
email: false
language: python
env:
- NOPLOT=1
matrix:
include:
- os: linux
sudo: false
python: 2.7
- os: linux
sudo: false
python: 3.6
- os: linux
python: 3.7
# https://github.com/travis-ci/travis-ci/issues/9815
dist: xenial
sudo: true
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.6
- NOPLOT=1
before_install:
- echo $TRAVIS_OS_NAME
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
touch config.sh
git clone --depth=1 https://github.com/matthew-brett/multibuild.git
source multibuild/common_utils.sh
source multibuild/travis_steps.sh
before_install
printenv
fi
install:
- pip install pytest numpy
- python setup.py bdist_wheel
- pip install --pre --no-index --find-links dist/ ad3
script:
- echo "Running tests"
- mkdir empty_folder; cd empty_folder; pytest -vs --pyargs ad3; cd ..
- echo "Running examples"
- for f in examples/python/*.py; do echo $f; python $f; done