forked from qiskit-community/qiskit-aqua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (43 loc) · 1.38 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
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
notifications:
on_success: change
on_failure: always
cache: pip
os: linux
dist: trusty
language: python
python:
- "3.6"
# Install Dependencies
# The env. variable MASTER_BRANCH_DEPENDENCIES forces dependencies used from master
env:
- MASTER_BRANCH_DEPENDENCIES=true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libopenblas-dev
- g++-7
before_install:
# download Qiskit Terra master and unzip it only if forced from master or not stable branch, otherwise use the pypi version
- |
if [ ${MASTER_BRANCH_DEPENDENCIES} = "true" ] || [ ${TRAVIS_BRANCH} != "stable" ]; then
wget https://codeload.github.com/Qiskit/qiskit-terra/zip/master -O /tmp/qiskit-terra.zip
unzip /tmp/qiskit-terra.zip -d /tmp/
# Install Qiskit Terra requirements.
pip install -U -r /tmp/qiskit-terra-master/requirements.txt
pip install -U -r /tmp/qiskit-terra-master/requirements-dev.txt
# Install local Qiskit Terra
pip install -e /tmp/qiskit-terra-master
fi
# Test
install:
# install Aqua and dev requirements
- pip install -e $TRAVIS_BUILD_DIR
- pip install -U -r requirements-dev.txt
script:
- python -m unittest discover -v test