forked from Qiskit/qiskit-aer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 946 Bytes
/
.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
# 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.
language: python
python:
- "3.6"
os: linux
dist: trusty
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -y update
- sudo apt-get -y install g++-7
- sudo apt-get -y install cmake
- sudo apt-get -y install libopenblas-dev
install:
# Installing qiskit-terra master branch...
- git clone https://github.com/Qiskit/qiskit-terra.git
- cd qiskit-terra
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- python ./setup.py install
- cd ..
# Installing qiskit-aer...
- pip install -r requirements-dev.txt
script:
- python setup.py bdist_wheel -- -DCMAKE_CXX_COMPILER=g++-7 -- -j4
- pip install dist/qiskit_aer*whl
- mv qiskit qiskit.disable
- python -m unittest discover -s test -v