forked from deeptools/pyGenomeTracks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (58 loc) · 1.79 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
50
51
52
53
54
55
56
57
58
59
60
61
language: c
sudo: true
env:
- TRAVIS_PYTHON_VERSION=3.6
- TRAVIS_PYTHON_VERSION=3.7
#- TRAVIS_PYTHON_VERSION=3.8
#branches:
#only:
#- master
#- releasev3.2_1
os:
- linux
- osx
jobs:
include:
- stage: lint
env:
- LINT=1
- TRAVIS_OS_NAME=linux
before_install:
- curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o
miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- PATH_WITHOUT_CONDA="$PATH"
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION flake8
script:
- if [[ "$LINT" == "1" ]]; then flake8 . --exclude=.venv,.build,build --ignore=E501,F403,E402,F999,F405,E712,W503
; fi
before_install:
- export TEST_DATA_DIR="`pwd`/skggenometracks/test/test_data/"
- echo $TEST_DATA_DIR
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl
https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh
; fi
- bash miniconda.sh -b -p $HOME/miniconda
- PATH_WITHOUT_CONDA="$PATH"
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
install:
- conda install --yes -c bioconda -c conda-forge python=$TRAVIS_PYTHON_VERSION --file requirements.txt
- conda install --yes -c conda-forge -c bioconda pytest
- conda install --yes -c conda-forge -c bioconda nose
- conda install --yes -c conda-forge -c bioconda ghostscript
- conda install --yes pathlib
- python setup.py install
script:
- py.test skggenometracks --doctest-modules