forked from refnx/refnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml.bak
89 lines (74 loc) · 2.67 KB
/
.travis.yml.bak
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
87
88
89
sudo: false
dist: xenial
language: python
matrix:
include:
# - os: linux
# env: PY=3.7.3
- os: osx
language: generic
env: PY=3.7
addons:
apt:
packages:
- libhdf5-serial-dev
services:
- xvfb
#before_script:
# - |
# if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# export DISPLAY=:99.0
# sh -e /etc/init.d/xvfb start
# sleep 3 # give xvfb some time to start
# fi
before_install:
- echo $TRAVIS_OS_NAME
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda update --yes conda
# Useful for debugging any issues with conda
- conda info -a
- conda config --add channels conda-forge
- conda config --set channel_priority strict
- conda create --yes -n conda-refnx python=$PY
- source activate conda-refnx
- conda install --yes -c conda-forge numpy scipy h5py cython pandas xlrd pytest ipywidgets IPython matplotlib traitlets pyqt
- conda install --yes -c conda-forge numpydoc sphinx jupyter pandoc nbconvert pyopencl
- pip install uncertainties attrs corner nbsphinx jupyter_sphinx sphinx_rtd_theme tqdm pytest-qt periodictable
- pip install git+https://github.com/pymc-devs/pymc3
# enable OpenMP support for Apple-clang
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install libomp
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export CXXFLAGS="$CXXFLAGS -Xpreprocessor -fopenmp"
export CFLAGS="$CFLAGS -Xpreprocessor -fopenmp"
export CXXFLAGS="$CXXFLAGS -I/usr/local/opt/libomp/include"
export CFLAGS="$CFLAGS -I/usr/local/opt/libomp/include"
export LDFLAGS="$LDFLAGS -L/usr/local/opt/libomp/lib -lomp"
export DYLD_LIBRARY_PATH=/usr/local/opt/libomp/lib
fi
script:
- export MPLBACKEND=agg
# put cwd in the top of the directory stack
- pushd .
# install and test from the sdist
- python setup.py sdist
- cd dist
- pip install *.tar.gz
- python -c 'import refnx;refnx.test()'
# restore the working directory to the root refnx directory
- popd
- sphinx-build -b html doc doc/html
notifications:
# Perhaps we should have status emails sent to the mailing list, but
# let's wait to see what people think before turning that on.
email: false