Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcafferry committed Sep 18, 2020
1 parent 240d197 commit d34d475
Showing 1 changed file with 32 additions and 51 deletions.
83 changes: 32 additions & 51 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,43 @@
language: python

sudo: required
dist: trusty

group: edge

deploy:
provider: pages
# local_dir: ${TRAVIS_BUILD_DIR}/docs/build/html
local_dir: /docs/build/html
skip_cleanup: true
repo: qmlcode/qmlcode.github.io
target_branch: master
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
on:
branch: master
condition: ${TRAVIS_PYTHON_VERSION} = "2.7"

python:
- "2.7"
- "3.5"
- "3.6"

- "3.7"
- "3.8"

before_install:
- cd Machine-Learning-for-Structural-Bioinformatics/PSSpred/
- mkdir nr
- cd nr/
- wget -O nr.tar.gz https://zhanglab.ccmb.med.umich.edu/cgi-bin/download_ftp.cgi?ID=nr.tar.gz
- tar -zxvf nr.tar.gz
- ls
- pwd
- sudo apt-get update -qq

- wget https://zhanglab.ccmb.med.umich.edu/PSSpred/PSSpred_v4.tar.bz2
- tar -jxvf PSSpred_v4.tar.bz2
- ls
- pwd

before_install:
- pip3 install gfortran
- pip3 install coverage
- pip3 install codecov
- pip3 install -U tox-travis
install:
- sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev
- sudo apt-get install -qq gcc-4.8 gfortran-4.8
- |
if [ ${TRAVIS_PYTHON_VERSION:0:1} = 3 ]; then
sudo apt-get install python3-numpy
pip3 install scipy
python3 setup.py build
python3 setup.py install
pip3 install sphinx
pip3 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
elif [ ${TRAVIS_PYTHON_VERSION} = "2.7" ]; then
sudo apt-get install python-numpy
pip2 install scipy
python2 setup.py build
python2 setup.py install
pip2 install sphinx
pip2 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
else
echo "ERROR: Unknown Python version."
fi
before_script:
- cd ${TRAVIS_BUILD_DIR}/tests/

- |
python3 setup.py build
python3 setup.py sdist
python3 setup.py bdist
python3 setup.py bdist_egg
python3 setup.py install
script:
- nosetests -v

- ls
- coverage debug sys
- coverage run pymbd/pymbd.py
- codecov
- bash <(curl -s https://codecov.io/bash)
notifications:
email: false

0 comments on commit d34d475

Please sign in to comment.