forked from mozilla/addons-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (74 loc) · 1.63 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
language: python
sudo: false
python:
- 2.7
env:
global:
- secure: "bYe6WOTAnlS8Ru4ODWSSOnHffxcN23NkKZh4M0eO510HvZGCMB4zZn8afiVKGXd1YqsoRfMXTBZJ0yBcFEvWnyH7S4kd+7d1PpNS4kgLVKtLCW5d7Wc5GA6uh1jWLS+zKFBNN5sZ8OVc7rCsLCBRDEoI94wBKYwDX2Kk1WKylz8="
- AUTOGRAPH_SERVER_URL: http://localhost:5500
matrix:
- TOXENV=flake8
- TOXENV=docs
- TOXENV=assets
- TOXENV=es
- TOXENV=addons
- TOXENV=devhub
- TOXENV=reviewers
- TOXENV=amo
- TOXENV=users
- TOXENV=main
cache:
pip: true
directories:
- node_modules
- $HOME/.gimme
services:
- mysql
- memcached
- elasticsearch
- redis
addons:
apt:
sources:
- elasticsearch-5.x
packages:
- swig
- oracle-java8-set-default
- elasticsearch
- gettext
before_install:
- mysql -e 'create database olympia;'
- export GOPATH=$HOME/go
- export PATH=$HOME/usr/local/go/bin:$GOPATH/bin:$PATH
install:
- nvm current
- nvm deactivate
- nvm install 6
- nvm use 6
- pip install --upgrade pip wheel setuptools tox==1.8.1
- curl -sL -o ./gimme https://raw.githubusercontent.com/travis-ci/gimme/v1.2.0/gimme
- chmod +x ./gimme
- eval "$(./gimme 1.8.5)"
- ./scripts/start-autograph.sh
before_script:
- mysql --version
- node --version
- java -version
- curl -v http://localhost:9200/
script:
- |
if [[ $TRAVIS_EVENT_TYPE != "cron" ]]; then
RUNNING_IN_CI=True tox -v
fi
- |
if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
bash scripts/travis-extract-l10n.sh
fi
notifications:
irc:
channels:
- "irc.mozilla.org#amo-bots"
on_success: change
on_failure: always
git:
depth: 1