-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (49 loc) · 1.69 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
sudo: false
dist: trusty
language: python
matrix:
include:
- python: 3.5
env: CC=gcc-5 CXX=g++-5
- python: 3.6
env: CC=gcc-5 CXX=g++-5
- python: 3.6
env: CC=clang CXX=clang++
- python: 3.6
env: OPENBLAS=1 CC=gcc-5 CXX=g++-5
- os: osx
osx_image: xcode9.2
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get update -qq;
sudo apt-get install -qq g++-5;
fi
# command to install dependencies
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
export LD_LIBRARY_PATH=$(if [[ $CC == "clang" ]]; then echo -n '/usr/local/clang/lib'; fi);
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
#- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- if [[ "${OPENBLAS}" == "1" ]]; then
conda install nomkl numpy scipy cython sympy ply networkx matplotlib jsonschema;
else
conda install mkl numpy scipy cython sympy ply networkx matplotlib jsonschema;
fi
- pip install IBMQuantumExperience
# Finally, build Cython modules.
- python setup.py build_ext --inplace
# command to run tests
script:
- SKIP_ONLINE_TESTS=1 python -m unittest discover -s test -v