Skip to content

Commit

Permalink
Try to fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimwolff committed Oct 30, 2017
1 parent bc03450 commit 6b475fa
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,31 @@ jobs:
- conda install --yes python=2.7 flake8
script:
- if [[ "$LINT" == "1" ]]; then flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F403,E402,F999,F405,E712 ; fi
- stage: test
# Setup anaconda
before_install:
- export HIC_TEST_DATA_DIR="`pwd`/hicexplorer/test/test_data/"
- echo $HIC_TEST_DATA_DIR
- curl https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -o miniconda.sh
# - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh ; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-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
# Useful for debugging any issues with conda
- conda info -a

# Setup anaconda
before_install:
- export HIC_TEST_DATA_DIR="`pwd`/hicexplorer/test/test_data/"
- echo $HIC_TEST_DATA_DIR
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then curl https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-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
# Useful for debugging any issues with conda
- conda info -a

# Install packages
install:
- conda create --name hicexplorer_pytest --yes python=$TRAVIS_PYTHON_VERSION pytest
- source activate hicexplorer_pytest
- conda install --yes -c defaults -c conda-forge -c bioconda --file requirements.txt
- conda install --yes -c defaults -c conda-forge -c bioconda configparser
- python setup.py install
# Install packages
install:
- conda create --name hicexplorer_pytest --yes python=$TRAVIS_PYTHON_VERSION pytest
- source activate hicexplorer_pytest
- conda install --yes -c defaults -c conda-forge -c bioconda --file requirements.txt
- conda install --yes -c defaults -c conda-forge -c bioconda configparser
- python setup.py install

# command to run tests
script:
- py.test hicexplorer --doctest-modules
# command to run tests
script:
- py.test hicexplorer --doctest-modules

0 comments on commit 6b475fa

Please sign in to comment.