forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (43 loc) · 954 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
33
34
35
36
37
38
39
40
41
42
43
44
language: python
python:
- 2.7
- 3.6
sudo: false
env:
- ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
matrix:
include:
- python: 2.7
env: TOXENV=docs
- python: 3.6
env: TOXENV=docs-lint
- python: 2.7
env: TOXENV=lint
script: tox
- python: 2.7
env: TOXENV=eslint
cache:
directories:
- ~/.cache/pip
- ~/.nvm/nvm.sh
install:
- ./scripts/travis/install_elasticsearch.sh
- pip install tox-travis
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
- source ~/.nvm/nvm.sh
- nvm install --lts
- nvm use --lts
- npm install -g bower
- npm install
- bower install
script:
- ./scripts/travis/run_tests.sh
notifications:
slack:
rooms:
- readthedocs:y3hjODOi7EIz1JAbD1Zb41sz#random
on_success: change
on_failure: always
branches:
only:
- master