forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
67 lines (63 loc) · 1.54 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: python
python:
- 3.6
dist: xenial
matrix:
include:
- python: 3.6
env: TOXENV=itresolver
- python: 3.6
env: TOXENV=py36,codecov ES_VERSION=6.3.2 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- python: 3.6
env: TOXENV=docs
- python: 3.6
env: TOXENV=docs-lint
- python: 3.6
env: TOXENV=lint
script: tox
- python: 3.6
env: TOXENV=eslint
- python: 3.6
env: TOXENV=migrations
allow_failures:
- python: 3.6
# This is fixed upstream - it will be fixed at next upgrade
env: TOXENV=eslint
cache:
directories:
- ~/.cache/pip
- ~/.nvm/nvm.sh
- ~/.npm
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
- rel # Community release branch
- relcorp # Corporate release branch
- /^dev.*$/ # docsitalia dev branch
- /^staging.*$/ # docsitalia staging branch
- /^production.*$/ # docsitalia production branch
- /^italia-.*$/ # general docs italia branches
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10