-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
32 lines (28 loc) · 909 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Config file for automatic testing at travis-ci.org
language: python
cache: pip
matrix:
include:
- env: TOX_ENV=py35-django-225
python: 3.5
- env: TOX_ENV=py36-django-225
python: 3.6
- env: TOX_ENV=py37-django-225
python: 3.7
dist: xenial
sudo: true
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- pip install -r requirements_dev.txt
- cd longclaw/client && npm install
# command to run tests using coverage, e.g. python setup.py test
script: tox -e $TOX_ENV
after_success:
- codecov -e TOX_ENV
- 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