Skip to content

Commit e699164

Browse files
Merge pull request #40 from jeromekelleher/more-ci
Initial appveyor config.
2 parents 4a9d2c5 + 824ae5b commit e699164

File tree

4 files changed

+106
-12
lines changed

4 files changed

+106
-12
lines changed

.travis.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
cache:
2+
pip: true
3+
directories:
4+
- $HOME/.cache/pip
5+
- $HOME/.local
6+
7+
language: python
8+
9+
matrix:
10+
include:
11+
- os: linux
12+
python: 2.7
13+
- os: linux
14+
python: 3.5
15+
- os: linux
16+
python: 3.6
17+
- os: osx
18+
language: generic
19+
20+
install:
21+
- echo "DISABLED"
22+
23+
script:
24+
- echo "DISABLED"
25+
26+
# FIXME giving up here also until an installable version of msprime is available
27+
# on conda. The GSL dependency is too hard otherwise.
28+
#
29+
# install:
30+
# # We do this conditionally because it saves us some downloading if the
31+
# # version is the same.
32+
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
33+
# curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > miniconda.sh;
34+
# export TRAVIS_PYTHON_VERSION="3.6";
35+
# elif [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
36+
# wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
37+
# else
38+
# wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
39+
# fi
40+
# - bash miniconda.sh -b -p $HOME/miniconda
41+
# - export PATH="$HOME/miniconda/bin:$PATH"
42+
# - hash -r
43+
# - conda config --set always_yes yes --set changeps1 no
44+
# - conda config --add channels conda-forge
45+
# - conda update -q conda
46+
# - conda info -a
47+
# - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
48+
# - source activate test-environment
49+
# - conda install --yes --file=python/requirements/conda-minimal.txt
50+
# - conda install -c bioconda --yes pysam
51+
# - pip install -r python/requirements/development.txt
52+
# # Need to install in 'edit' mode, as pip can't find the header files otherwise.
53+
# # No idea why.
54+
# - pip install -e python/
55+
56+
# script:
57+
# - nosetests -vs python/tests

appveyor.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
environment:
2+
matrix:
3+
# Disabling Py36 x64. Some weird problem with h5py. See github.com/tskit-dev/msprime/issues/678
4+
# - PYTHON: "C:\\Miniconda36-x64"
5+
# - PYTHON: "C:\\Miniconda37"
6+
# Disabling Py37. See https://github.com/tskit-dev/msprime/issues/653
7+
#- PYTHON: "C:\\Miniconda37-x64"
8+
- PYTHON: "C:\\Miniconda36"
9+
10+
install:
11+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
12+
13+
build: false
14+
15+
# test_script:
16+
# # We have symlinks in the repo, which need to be treated specially on Windows.
17+
# - "git config core.symlinks true"
18+
# - "git reset --hard"
19+
# - "conda config --add channels conda-forge"
20+
# - "conda install --yes --file=python/requirements/conda-minimal.txt"
21+
# - "pip install kastore"
22+
# - "pip install PyVCF"
23+
# - "pip install newick"
24+
# - "pip install python_jsonschema_objects"
25+
26+
# FIXME: giving up until we have an installable version of msprime from Conda.
27+
# It's too tricky to manage the GSL dependency otherwise.
28+
#
29+
# # TODO: remove when we have an installable version of msprime 0.7.x
30+
# - "pip install --pre tskit"
31+
# - "conda install --yes gsl"
32+
# - "SET MSP_CONDA_PREFIX=%PYTHON%"
33+
# - "pip install --user git+https://github.com/tskit-dev/msprime"
34+
35+
# - "cd python"
36+
# - "python setup.py build_ext --inplace"
37+
# - "nosetests -vs"
38+
39+
# after_test:
40+
# - "python setup.py bdist_wheel"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
numpy
2+
nose
3+
h5py
4+
six
5+
jsonschema
6+
svgwrite

python/requirements/development.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,12 @@ newick
77
nose
88
numpy
99
six
10-
kastore>=0.2.2
10+
kastore
1111
jsonschema
1212
sphinx
1313
sphinx-argparse
1414
sphinx_rtd_theme
1515
svgwrite
16-
# Seems to be a problem with Python 3. svgwrite imports
17-
# pyparsing.
18-
pyparsing < 2.1
19-
20-
# We need pysam and PyVCF for testing VCF output.
21-
# Pin pysam at 0.9 version as there are problems with building py33 version
22-
# on travis.
23-
pysam==0.9.1.4
16+
pyparsing
17+
pysam
2418
PyVCF
25-
26-
# We use JSON-schema to test out metadata handling.
27-
python_jsonschema_objects

0 commit comments

Comments
 (0)