This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (41 loc) · 1.64 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
language: generic
# We don't actually use the Travis Python, but this keeps it organized.
# The test matrix really uses the latest Miniconda for Py2 or Py3,
# and we're "fooling" Travis into doing this for us.
matrix:
include:
- os: linux
dist: trusty
env: TOXENV=3
- os: osx
osx_image: xcode10.2
language: generic
env: TOXENV=3
# - os: osx
# osx_image: xcode7.2
# language: generic
# env: TOXENV=3
sudo: true
notifications:
email: false
install:
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$TOXENV" == "3" ]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" -a "$TOXENV" == "3" ]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
# - conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda config --add channels defaults
- conda config --add channels bioconda
- conda config --add channels conda-forge
- conda install pybind11 numpy
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then conda install gcc_linux-64 gxx_linux-64; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then conda install clang_osx-64 clangxx_osx-64; fi
#- conda install htslib==1.3.2 #Attempt pinning
- conda install -c conda-forge msprime
script:
- python setup.py build_ext -i --no-weffcpp
- python -m unittest discover tests