Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis builds fail when tests fail #49

Merged
merged 7 commits into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 42 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,64 @@ branches:
- master
- beta
- develop
- /^feature-.*$/
- /^bugfix-.*$/

env:
- Drivers=True # First in build mx because long duration
- Algorithms=True
- AlgorithmsB=True
- Default=True # construction, io, objects, tools, optimize
- Report=True
- ReportB=True
- MPI=True
global:
- NOSEOPTS_DEFAULT="-v --with-timer --with-id --rednose"
- NOSEOPTS_PARALLEL="--processes=-1 --process-timeout=2400" # timeout after 40 minutes (travis job timeout is 50 minutes)
- NOSEOPTS_ALL="$NOSEOPTS_DEFAULT $NOSEOPTS_PARALLEL"
matrix:
- NOSETESTS="drivers objects" NOSEOPTS=$NOSEOPTS_ALL # first in build mx because long duration
- NOSETESTS="algorithms" NOSEOPTS=$NOSEOPTS_ALL
- NOSETESTS="algorithmsb" NOSEOPTS=$NOSEOPTS_ALL
- NOSETESTS="tools iotest optimize construction extras" NOSEOPTS=$NOSEOPTS_ALL
- NOSETESTS="report" NOSEOPTS=$NOSEOPTS_ALL
- NOSETESTS="reportb" NOSEOPTS=$NOSEOPTS_ALL
- NOSETESTS="mpi" NOSEOPTS=$NOSEOPTS_DEFAULT # cannot be run in parallel

# Install native package dependencies & initialize build environment
before_install:
- sudo apt-get -qq update
- sudo apt-get -qq install gfortran libblas-dev liblapack-dev
- sudo apt-get -qq install openmpi-bin openmpi-common openssh-client openssh-server libopenmpi1.6 libopenmpi1.6-dbg libopenmpi-dev > /dev/null
- sudo bash CI/install.sh # travis_wait 30 "sudo bash CI/install.sh" # > /dev/null 2>&1"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" #some tests require a display
- sleep 3 # give xvfb some time to start
- >
sudo apt-get update -qq -y &&
sudo apt-get install -qq -y
gfortran libblas-dev liblapack-dev openmpi-bin openmpi-common openssh-client
openssh-server libopenmpi1.6 libopenmpi1.6-dbg libopenmpi-dev
libsuitesparse-dev
- export DISPLAY=:99.0
- /bin/sh -e /etc/init.d/xvfb start && sleep 3 # some tests require a display
- cmake --version
- gcc --version

# Install python package dependencies
install:
- pip install zmq coverage >/dev/null
- pip install -e .[travisci]


# Default `test' stage script
script:
- cd test/test_packages
- nosetests $NOSEOPTS $NOSETESTS

# Cache pip packages
cache:
pip: true
timeout: 1000

#Script For default "test" stage
script:
- cd test
- python travisTests.py # just produce test_packages/runTravisTests.sh
- cd test_packages
- source runTravisTests.sh # no need for travis_wait (always outputs every 9m)
- cd ../..
stages:
- test
- name: deploy # only run deployment for master & develop branches
if: branch IN (master, develop)

jobs:
include:
- stage: deploy
python: 3.5
env: Drivers=False Algorithms=False AlgorithmsB=False Default=False Report=False ReportB=False MPI=False
env: NOSETESTS=none NOSEOPTS=$NOSEOPTS_DEFAULT
install: skip
script: python CI/deploy

notifications:
email:
on_success: change
on_failure: always

email:
on_success: change
on_failure: always
71 changes: 0 additions & 71 deletions CI/install.sh

This file was deleted.

17 changes: 10 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
#libraries=['m'] #math lib?
),
Extension("pygsti.objects.fastopcalc",
sources=["packages/pygsti/objects/fastopcalc.pyx"],
sources=["packages/pygsti/objects/fastopcalc.pyx"],
include_dirs=['.', np.get_include()],
language="c++",
extra_compile_args=["-std=c++11"], #,"-stdlib=libc++"
extra_link_args=["-std=c++11"]
),
Extension("pygsti.objects.fastreplib",
sources=["packages/pygsti/objects/fastreplib.pyx", "packages/pygsti/objects/fastreps.cpp"],
sources=["packages/pygsti/objects/fastreplib.pyx", "packages/pygsti/objects/fastreps.cpp"],
include_dirs=['.', np.get_include()],
language="c++",
extra_compile_args=["-std=c++11"], #,"-stdlib=libc++"
Expand All @@ -47,7 +47,7 @@
except ImportError: # if Cython isn't available (e.g. in readthedocs) just skip
#print warning??
ext_modules = []


classifiers = """\
Development Status :: 4 - Beta
Expand Down Expand Up @@ -102,11 +102,14 @@
'generating PDFs of report figures': ['matplotlib'],
'generating report notebooks': ['ipython','notebook'],
'read/write message pack format': ['msgpack'],
'extension modules': ['cython'],
'complete': ['nose','cython','cvxpy','cvxopt','psutil','mpi4py','pandas','matplotlib','ipython','notebook','msgpack'],
'travisci': ['nose','nose-timer','cython','cvxpy','cvxopt','psutil','mpi4py','pandas','msgpack']
'extension modules': ['cython'],
'complete': ['nose','nose-timer','cython','cvxpy','cvxopt','psutil',
'mpi4py','pandas','matplotlib','ipython','notebook',
'msgpack','coverage','zmq','rednose'],
'travisci': ['nose','nose-timer','cython','cvxpy','cvxopt','psutil',
'mpi4py','pandas','msgpack','coverage','zmq','rednose']
},
platforms = ["any"],
platforms = ["any"],
url = 'http://www.pygsti.info',
download_url = 'https://github.com/pyGSTio/pyGSTi/tarball/master',
keywords = ['pygsti', 'tomography', 'gate set', 'pigsty', 'pig', 'quantum', 'qubit'],
Expand Down
70 changes: 0 additions & 70 deletions test/travisTests.py

This file was deleted.