2014-08-07 15:11:48 +04:00
|
|
|
language: python
|
2014-12-18 16:40:52 +03:00
|
|
|
sudo: false
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
python:
|
2016-12-07 22:21:35 +03:00
|
|
|
- 2.7
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-11-19 19:36:40 +03:00
|
|
|
env:
|
2017-02-07 22:21:09 +03:00
|
|
|
global:
|
2017-09-14 23:36:43 +03:00
|
|
|
- secure: "bYe6WOTAnlS8Ru4ODWSSOnHffxcN23NkKZh4M0eO510HvZGCMB4zZn8afiVKGXd1YqsoRfMXTBZJ0yBcFEvWnyH7S4kd+7d1PpNS4kgLVKtLCW5d7Wc5GA6uh1jWLS+zKFBNN5sZ8OVc7rCsLCBRDEoI94wBKYwDX2Kk1WKylz8="
|
2017-11-13 19:29:57 +03:00
|
|
|
- AUTOGRAPH_SERVER_URL: http://localhost:5500
|
2017-02-07 22:21:09 +03:00
|
|
|
matrix:
|
2018-01-23 15:13:19 +03:00
|
|
|
- TOXENV=codestyle
|
2016-07-06 18:46:50 +03:00
|
|
|
- TOXENV=docs
|
|
|
|
- TOXENV=assets
|
|
|
|
- TOXENV=es
|
|
|
|
- TOXENV=addons
|
|
|
|
- TOXENV=devhub
|
2017-10-23 14:09:29 +03:00
|
|
|
- TOXENV=reviewers
|
2018-02-01 23:20:56 +03:00
|
|
|
- TOXENV=amo-locales-and-signing
|
|
|
|
- TOXENV=users-and-accounts
|
2016-07-06 18:46:50 +03:00
|
|
|
- TOXENV=main
|
2016-04-08 10:21:52 +03:00
|
|
|
|
|
|
|
cache:
|
2016-07-06 18:46:50 +03:00
|
|
|
pip: true
|
2016-04-08 10:21:52 +03:00
|
|
|
directories:
|
|
|
|
- node_modules
|
2017-11-13 19:29:57 +03:00
|
|
|
- $HOME/.gimme
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-08 16:08:46 +04:00
|
|
|
services:
|
2017-07-24 14:44:44 +03:00
|
|
|
- mysql
|
2014-08-07 15:11:48 +04:00
|
|
|
- memcached
|
2016-12-07 22:21:35 +03:00
|
|
|
- elasticsearch
|
2017-10-16 12:16:41 +03:00
|
|
|
- redis
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2016-06-13 19:22:49 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-12-07 22:21:35 +03:00
|
|
|
sources:
|
|
|
|
- elasticsearch-5.x
|
2016-06-13 19:22:49 +03:00
|
|
|
packages:
|
|
|
|
- swig
|
2016-12-07 22:21:35 +03:00
|
|
|
- oracle-java8-set-default
|
|
|
|
- elasticsearch
|
2017-07-19 15:58:26 +03:00
|
|
|
- gettext
|
2016-06-13 19:22:49 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
before_install:
|
2017-07-24 14:44:44 +03:00
|
|
|
- mysql -e 'create database olympia;'
|
2017-11-13 19:29:57 +03:00
|
|
|
- export GOPATH=$HOME/go
|
|
|
|
- export PATH=$HOME/usr/local/go/bin:$GOPATH/bin:$PATH
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
install:
|
2016-03-10 02:37:09 +03:00
|
|
|
- nvm current
|
|
|
|
- nvm deactivate
|
2017-05-08 15:50:18 +03:00
|
|
|
- nvm install 6
|
|
|
|
- nvm use 6
|
2018-02-02 14:47:50 +03:00
|
|
|
- pip install --upgrade pip wheel setuptools tox==2.9.1
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
before_script:
|
2017-07-24 14:46:17 +03:00
|
|
|
- mysql --version
|
2016-03-10 02:37:09 +03:00
|
|
|
- node --version
|
2016-12-07 22:21:35 +03:00
|
|
|
- java -version
|
|
|
|
- curl -v http://localhost:9200/
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
script:
|
2017-09-14 23:36:43 +03:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE != "cron" ]]; then
|
2018-02-01 23:20:56 +03:00
|
|
|
if [[ $TOXENV == "amo-locales-and-signing" ]]; then
|
|
|
|
./scripts/start-autograph.sh
|
|
|
|
fi
|
2017-09-14 23:36:43 +03:00
|
|
|
RUNNING_IN_CI=True tox -v
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
|
|
|
|
bash scripts/travis-extract-l10n.sh
|
|
|
|
fi
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.mozilla.org#amo-bots"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2016-05-12 17:18:56 +03:00
|
|
|
|
2016-07-06 18:46:50 +03:00
|
|
|
git:
|
2017-04-19 19:06:02 +03:00
|
|
|
depth: 1
|