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:
|
2017-02-07 22:21:09 +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:
|
|
|
|
- DISPLAY=:99.0
|
|
|
|
matrix:
|
2016-07-06 18:46:50 +03:00
|
|
|
- TOXENV=flake8
|
|
|
|
- TOXENV=docs
|
|
|
|
- TOXENV=assets
|
|
|
|
- TOXENV=es
|
|
|
|
- TOXENV=addons
|
|
|
|
- TOXENV=devhub
|
|
|
|
- TOXENV=editors
|
|
|
|
- TOXENV=amo
|
|
|
|
- TOXENV=users
|
|
|
|
- TOXENV=main
|
2017-02-07 22:21:09 +03:00
|
|
|
- TOXENV=ui-tests
|
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
|
2016-07-06 18:46:50 +03:00
|
|
|
- .tox
|
2016-04-08 10:21:52 +03:00
|
|
|
|
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
|
2017-05-16 21:27:34 +03:00
|
|
|
firefox: latest-nightly
|
2016-06-13 19:22:49 +03:00
|
|
|
|
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
|
2017-05-08 15:50:18 +03:00
|
|
|
- nvm install 6
|
|
|
|
- nvm use 6
|
2017-01-03 15:49:24 +03:00
|
|
|
- pip install --upgrade pip wheel setuptools 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
|
2017-02-07 22:21:09 +03:00
|
|
|
- |
|
|
|
|
if [[ $TOXENV == "ui-tests" ]]; then
|
2017-05-16 21:27:34 +03:00
|
|
|
wget -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.16.1/geckodriver-v0.16.1-linux64.tar.gz
|
2017-02-07 22:21:09 +03:00
|
|
|
mkdir $HOME/geckodriver && tar xvf /tmp/geckodriver.tar.gz -C $HOME/geckodriver
|
|
|
|
export PATH=$HOME/geckodriver:$PATH
|
|
|
|
firefox --version
|
|
|
|
geckodriver --version
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
sleep 10
|
|
|
|
fi
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
script:
|
2016-07-06 18:46:50 +03:00
|
|
|
- RUNNING_IN_CI=True tox -v
|
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
|