2015-08-27 17:17:04 +02:00
|
|
|
language: python
|
2016-09-20 15:45:53 +02:00
|
|
|
|
2015-08-27 17:17:04 +02:00
|
|
|
notifications:
|
|
|
|
email: false
|
2016-09-20 15:45:53 +02:00
|
|
|
|
2016-11-15 15:28:13 +01:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- COMMIT_AUTHOR_EMAIL: "cimatosa@gmx.de"
|
|
|
|
|
2015-08-27 17:17:04 +02:00
|
|
|
python:
|
|
|
|
- '3.4'
|
2016-09-20 23:26:48 +02:00
|
|
|
- '3.5'
|
2015-08-27 17:17:04 +02:00
|
|
|
|
|
|
|
before_install:
|
2016-09-20 23:23:42 +02:00
|
|
|
- sudo apt-get install build-essential
|
|
|
|
- sudo apt-get install libatlas-base-dev
|
2015-08-27 17:17:04 +02:00
|
|
|
- which python
|
2015-08-27 17:55:37 +02:00
|
|
|
- python --version
|
2015-08-27 17:28:19 +02:00
|
|
|
|
2015-08-27 17:17:04 +02:00
|
|
|
install:
|
2016-09-20 15:45:53 +02:00
|
|
|
- pip install pytest pytest-cov
|
2016-09-20 17:01:41 +02:00
|
|
|
- pip install cython
|
|
|
|
- pip install numpy scipy
|
2015-08-27 17:17:04 +02:00
|
|
|
- pip freeze
|
2016-09-20 15:45:53 +02:00
|
|
|
- python setup.py build_ext --inplace
|
|
|
|
|
2015-08-27 17:17:04 +02:00
|
|
|
script:
|
2016-09-20 23:28:46 +02:00
|
|
|
- py.test tests/ -v --cov=stocproc --cov-report term-missing
|
2016-09-20 15:45:53 +02:00
|
|
|
|
|
|
|
after_success:
|
2016-11-15 15:28:13 +01:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2016-11-15 15:36:59 +01:00
|
|
|
- pip install sphinx
|
2016-11-15 15:28:13 +01:00
|
|
|
- cd doc
|
|
|
|
- openssl aes-256-cbc -K $encrypted_b45fa9d06fcb_key -iv $encrypted_b45fa9d06fcb_iv -in deploy_key.enc -out deploy_key -d
|
|
|
|
- chmod 600 deploy_key
|
|
|
|
- eval `ssh-agent -s`
|
|
|
|
- ssh-add deploy_key
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- git clone https://github.com/cimatosa/stocproc.git --branch gh-pages html
|
|
|
|
- cd ..
|
|
|
|
- make html
|
|
|
|
- cd build/html
|
|
|
|
- git config user.name "travis gh-pages"
|
|
|
|
- git config user.email "$COMMIT_AUTHOR_EMAIL"
|
|
|
|
- git add .
|
|
|
|
- SHA=`git rev-parse --verify HEAD`
|
|
|
|
- commit -m "Deploy to GitHub Pages: ${SHA}"
|
|
|
|
- git push
|
|
|
|
|