forked from mozilla/addons-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.05 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
language: python
sudo: false
python:
- "2.7"
env:
- TOX_ENV=flake8
- TOX_ENV=docs
- TOX_ENV=assets
- TOX_ENV=es
- TOX_ENV=addons
- TOX_ENV=devhub
- TOX_ENV=editors
- TOX_ENV=main
matrix:
fast_finish: true
cache:
directories:
- node_modules
- $HOME/.cache/pip/
services:
- memcached
before_install:
- scripts/travis_es.sh
- /tmp/elasticsearch/elasticsearch-1.6.2/bin/elasticsearch -d -D es.path.data=/tmp -D es.gateway.type=none -D es.index.store.type=memory -D es.discovery.zen.ping.multicast.enabled=false
install:
- nvm current
- nvm deactivate
- nvm install 4
- nvm use 4
- pip install --upgrade pip wheel
- pip install tox==1.8.1
before_script:
- mysql -e 'create database olympia;'
- node --version
script:
- RUNNING_IN_CI=True tox -v -e $TOX_ENV --recreate
notifications:
irc:
channels:
- "irc.mozilla.org#amo-bots"
on_success: change
on_failure: always
webhooks:
# trigger Buildtime Trend Service to parse Travis CI log
- https://buildtimetrend.herokuapp.com/travis