addons-server/.travis.yml

76 строки
1.5 KiB
YAML
Исходник Обычный вид История

2014-08-07 15:11:48 +04:00
language: python
sudo: false
2014-08-07 15:11:48 +04:00
python:
- 2.7
2014-11-19 19:36:40 +03:00
env:
global:
- DISPLAY=:99.0
matrix:
- TOXENV=flake8
- TOXENV=docs
- TOXENV=assets
- TOXENV=es
- TOXENV=addons
- TOXENV=devhub
- TOXENV=editors
- TOXENV=amo
- TOXENV=users
- TOXENV=main
- TOXENV=ui-tests
cache:
pip: true
directories:
- node_modules
- .tox
services:
2014-08-07 15:11:48 +04:00
- memcached
addons:
apt:
packages:
- swig
firefox: latest
2014-08-07 15:11:48 +04:00
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
2014-08-07 15:11:48 +04:00
install:
- nvm current
- nvm deactivate
- nvm install 4
- nvm use 4
2017-01-03 15:49:24 +03:00
- pip install --upgrade pip wheel setuptools tox==1.8.1
2014-08-07 15:11:48 +04:00
before_script:
- mysql -e 'create database olympia;'
- node --version
- |
if [[ $TOXENV == "ui-tests" ]]; then
wget -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
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
2014-08-07 15:11:48 +04:00
script:
- RUNNING_IN_CI=True tox -v
2014-08-07 15:11:48 +04:00
notifications:
irc:
channels:
- "irc.mozilla.org#amo-bots"
on_success: change
on_failure: always
git:
depth: 3