-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (88 loc) · 2.45 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
sudo: required
branches:
only:
- master
- potato-1490727
cache:
pip: True
directories:
- node_modules
- downloads
language: python
services:
- docker
- mysql
- redis
env:
global:
- DATABASE_URL=mysql://root:@127.0.0.1:3306/kuma
- DJANGO_SETTINGS_MODULE=kuma.settings.travis
- DOCKER_COMPOSE_VERSION=1.23.2
- ES_VERSION=6.7.1
- ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.1.tar.gz
- PIPELINE_CLEANCSS_BINARY=$TRAVIS_BUILD_DIR/node_modules/.bin/cleancss
- PIPELINE_CLEANCSS_ARGUMENTS="-O1 --skip-rebase"
- PIPELINE_CSS_COMPRESSOR=kuma.core.pipeline.cleancss.CleanCSSCompressor
- PIPELINE_JS_COMPRESSOR=pipeline.compressors.uglifyjs.UglifyJSCompressor
- PIPELINE_SASS_BINARY=$TRAVIS_BUILD_DIR/node_modules/.bin/node-sass
- PIPELINE_UGLIFYJS_BINARY=$TRAVIS_BUILD_DIR/node_modules/.bin/uglifyjs
matrix:
include:
- python: "2.7"
env:
TOXENV=pytest
CREATE_DB=kuma
INSTALL_ELASTICSEARCH=1
INSTALL_NPM_TOOLS=1
- python: "2.7"
env:
TOXENV=flake8
- python: "2.7"
env:
TOXENV=docs
- python: "2.7"
env:
TOXENV=locales
CREATE_DB=kuma
INSTALL_NPM_TOOLS=1
- python: "2.7"
env:
TOXENV=docker
INSTALL_DOCKER_COMPOSE=1
UID=0
- python: "2.7"
env:
TOXENV=assetlint
INSTALL_NPM_TOOLS=1
- python: "3.6"
env:
TOXENV=pytest3
CREATE_DB=kuma
INSTALL_ELASTICSEARCH=1
INSTALL_NPM_TOOLS=1
allow_failures:
- python: "3.6"
env:
TOXENV=pytest3
CREATE_DB=kuma
INSTALL_ELASTICSEARCH=1
INSTALL_NPM_TOOLS=1
install:
- nvm install 10
- nvm use 10
- scripts/travis-install
- pip install -U pip
- pip install -r requirements/travis.txt
# Wait for ElasticSearch to be ready
- if [[ "$INSTALL_ELASTICSEARCH" == "1" ]]; then wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200; fi;
script:
- tox -v
after_failure:
- dmesg | tail
notifications:
irc:
channels:
- "irc.mozilla.org#mdndev"
on_success: always
on_failure: always
use_notice: true