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:
|
2015-03-12 20:49:34 +03:00
|
|
|
- "2.7"
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-11-19 19:36:40 +03:00
|
|
|
env:
|
|
|
|
- TOX_ENV=flake8
|
|
|
|
- TOX_ENV=docs
|
2014-12-18 13:52:39 +03:00
|
|
|
- TOX_ENV=assets
|
2016-06-15 11:51:12 +03:00
|
|
|
- TOX_ENV=main
|
2016-03-31 18:35:54 +03:00
|
|
|
- TOX_ENV=addons
|
|
|
|
- TOX_ENV=devhub
|
|
|
|
- TOX_ENV=editors
|
2016-06-15 11:51:12 +03:00
|
|
|
- TOX_ENV=es
|
2016-04-08 10:21:52 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- $HOME/.cache/pip/
|
|
|
|
|
2014-08-08 16:08:46 +04:00
|
|
|
services:
|
2014-08-07 15:11:48 +04:00
|
|
|
- memcached
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2016-06-13 19:22:49 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- swig
|
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
before_install:
|
2014-12-18 16:40:52 +03:00
|
|
|
- scripts/travis_es.sh
|
2016-03-24 16:16:46 +03:00
|
|
|
- /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
|
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
|
|
|
|
- nvm install 4
|
|
|
|
- nvm use 4
|
2016-05-12 17:18:56 +03:00
|
|
|
- pip install --upgrade pip wheel coverage codecov
|
2015-03-23 13:52:08 +03:00
|
|
|
- pip install tox==1.8.1
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
before_script:
|
|
|
|
- mysql -e 'create database olympia;'
|
2016-03-10 02:37:09 +03:00
|
|
|
- node --version
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
script:
|
2016-05-12 17:18:56 +03:00
|
|
|
- coverage erase
|
2015-10-20 00:32:27 +03:00
|
|
|
- RUNNING_IN_CI=True tox -v -e $TOX_ENV --recreate
|
2016-05-12 17:18:56 +03:00
|
|
|
- coverage combine
|
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-03-18 14:21:53 +03:00
|
|
|
webhooks:
|
2016-05-12 17:18:56 +03:00
|
|
|
# trigger Buildtime Trend Service to parse Travis CI log
|
|
|
|
- https://buildtimetrend.herokuapp.com/travis
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- coverage report
|
|
|
|
- codecov
|