forked from ProjectQ-Framework/FermiLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (45 loc) · 1.17 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
sudo: false
language: python
matrix:
include:
- os: linux
python: "2.7"
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['gcc-4.9', 'g++-4.9']
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']
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']
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']
env: CC=gcc-4.9 CXX=g++-4.9 PYTHON=3.6
before_install:
- pip$PY install --upgrade pip setuptools wheel
install:
- if [ "${PYTHON:0:1}" = "3" ]; then export PY=3; fi
- pip$PY install --only-binary=numpy,scipy numpy scipy
- pip$PY install pybind11
- pip$PY install -r requirements.txt
- pip$PY install pytest-cov
- pip$PY install coveralls
# command to run tests
script: pytest src/fermilib --cov src/fermilib
after_success:
- coveralls