forked from mozilla/addons-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (59 loc) · 1.22 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
language: python
sudo: false
python:
- "2.7"
env:
- TOXENV=flake8
- TOXENV=docs
- TOXENV=assets
- TOXENV=es
- TOXENV=addons
- TOXENV=devhub
- TOXENV=editors
- TOXENV=amo
- TOXENV=users
- TOXENV=versions
- TOXENV=main
matrix:
fast_finish: true
cache:
pip: true
directories:
- node_modules
- .tox
services:
- memcached
addons:
apt:
packages:
- swig
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 setuptools coverage codecov tox==1.8.1
before_script:
- mysql -e 'create database olympia;'
- node --version
script:
- coverage erase
- RUNNING_IN_CI=True tox -v
- coverage combine
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
after_success:
- coverage report
- codecov
git:
depth: 3