2017-02-03 10:04:57 +00:00
|
|
|
# Config file for automatic testing at travis-ci.org
|
|
|
|
|
|
|
|
language: python
|
2018-03-23 21:33:15 +00:00
|
|
|
cache: pip
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
matrix:
|
2018-03-23 21:33:15 +00:00
|
|
|
include:
|
2019-09-22 10:33:34 +00:00
|
|
|
- env: TOX_ENV=py35-django-225
|
2018-03-23 21:33:15 +00:00
|
|
|
python: 3.5
|
2019-09-22 10:33:34 +00:00
|
|
|
- env: TOX_ENV=py36-django-225
|
2018-03-23 21:33:15 +00:00
|
|
|
python: 3.6
|
2019-09-22 10:33:34 +00:00
|
|
|
- env: TOX_ENV=py37-django-225
|
2018-12-26 11:58:05 +00:00
|
|
|
python: 3.7
|
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
2017-02-03 10:04:57 +00:00
|
|
|
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
2017-08-25 07:33:47 +00:00
|
|
|
install:
|
2017-02-10 19:01:12 +00:00
|
|
|
- . $HOME/.nvm/nvm.sh
|
|
|
|
- nvm install stable
|
|
|
|
- nvm use stable
|
2018-12-26 11:58:05 +00:00
|
|
|
- pip install -r requirements_dev.txt
|
2017-02-10 18:48:07 +00:00
|
|
|
- cd longclaw/client && npm install
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
# command to run tests using coverage, e.g. python setup.py test
|
2018-03-23 21:54:36 +00:00
|
|
|
script: tox -e $TOX_ENV
|
2017-02-03 10:04:57 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- codecov -e TOX_ENV
|
2019-01-05 16:23:36 +00:00
|
|
|
- git config --global user.name "${GH_NAME}"
|
|
|
|
- git config --global user.email "${GH_EMAIL}"
|
|
|
|
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
|
|
|
|
- cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
|