@@ -4,64 +4,41 @@ branches:
44 - master
55 - develop
66
7- matrix :
8- allow_failures :
9- - os : osx
10- include :
11- - os : osx
12- language : generic
13- - os : linux
14- language : python
15- python : " 3.6"
7+ os : linux
8+ dist : focal
9+ language : minimal
1610
1711env :
1812 global :
1913 - CC_TEST_REPORTER_ID=3865090108d29191b1d34760d2ed5825d67b7566f0f87090e688b7513fdef063
2014
2115before_install :
2216 # setup miniconda
23- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
24- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
25- else
26- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
27- fi
17+ - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
2818 - chmod +x miniconda.sh
2919 - ./miniconda.sh -b -p $HOME/miniconda -f
30- - source "$HOME/miniconda/etc/profile.d/conda.sh"
31- - hash -r
32- - conda config --set always_yes yes --set changeps1 no
33- - conda update -q conda
34- - conda info -a
35- - if [ "$TRAVIS_OS_NAME" == "osx" ]; then ulimit -S -n 4096; ulimit -a; fi
20+ - export PATH=$HOME/miniconda/bin:$PATH;
21+ - conda config --set always_yes True
3622
3723install :
38- - conda config --add channels defaults
39- - conda config --add channels bioconda
40- - conda config --add channels conda-forge
41- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
42- conda install mamba -y;
43- mamba env create -q -f conda_env.dev.txt -n gimme;
44- else
45- conda env create -q -f conda_env.osx.txt -n gimme;
46- fi
47- - conda activate gimme
48- - conda list
49- - python setup.py build && pip install -e .
24+ - conda install conda-forge::mamba
25+ - mamba env create -f requirements.yaml
26+ - source activate gimme
27+ - python setup.py build # installs the motif discovery tools
28+ - pip install -e . # installs gimme (in editable mode)
5029
5130before_script :
5231 # install Code Climate test coverage reporter
53- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
54- wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64;
55- else
56- wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64;
57- fi
32+ - wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
5833 - chmod +x ./cc-test-reporter
5934 - ./cc-test-reporter before-build
6035
6136script :
37+ # generate the config and print the cache location
6238 - python -c 'from gimmemotifs.config import CACHE_DIR;print(CACHE_DIR)'
63- - pytest -vv --disable-pytest-warnings --cov=scripts --cov=gimmemotifs --cov-report=xml test/
39+ # run the tests
40+ - pytest -vvv --disable-pytest-warnings --cov=scripts --cov=gimmemotifs --cov-report=xml test/
6441
6542after_script :
6643 # upload test coverage data to Code Climate
67- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT; fi
44+ - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT
0 commit comments