forked from ProjectQ-Framework/ProjectQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·54 lines (50 loc) · 1.58 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
sudo: true
language: python
matrix:
include:
- os: linux
python: "2.7"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9', 'gcc-7', 'g++-7']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=2.7
- os: linux
python: "3.4"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9', 'gcc-7', 'g++-7']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.4
- os: linux
python: "3.5"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9', 'gcc-7', 'g++-7']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.5
- os: linux
python: "3.6"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9', 'gcc-7', 'g++-7']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.6
install:
- if [ "${PYTHON:0:1}" = "3" ]; then export PY=3; fi
- pip$PY install --upgrade pip setuptools wheel
- pip$PY install --only-binary=numpy,scipy numpy scipy
- pip$PY install -r requirements.txt
- pip$PY install pytest-cov
- pip$PY install coveralls
- CC=g++-7 pip$PY install revkit
- if [ "${PYTHON:0:1}" = "3" ]; then pip$PY install dormouse; fi
- cd ../.. && git clone https://github.com/vm6502q/qrack.git
- cd qrack && mkdir _build && cd _build && cmake .. && sudo make install && cd ../.. && sudo rm -r qrack && cd vm6502q/ProjectQ
- pip$PY install -e .
before_script:
- "echo 'backend: Agg' > matplotlibrc"
# command to run tests
script: export OMP_NUM_THREADS=1 && pytest projectq --cov projectq
after_success:
- coveralls