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
|
|
|
|
2018-09-05 12:23:49 +03:00
|
|
|
jobs:
|
|
|
|
fast_finish: true
|
|
|
|
allow_failures:
|
|
|
|
- python: 3.6
|
|
|
|
include:
|
|
|
|
- { stage: python2, env: TOXENV=codestyle }
|
|
|
|
- { stage: python2, env: TOXENV=docs }
|
|
|
|
- { stage: python2, env: TOXENV=assets }
|
|
|
|
- { stage: python2, env: TOXENV=es }
|
|
|
|
- { stage: python2, env: TOXENV=addons }
|
|
|
|
- { stage: python2, env: TOXENV=devhub }
|
2018-09-17 10:10:18 +03:00
|
|
|
- { stage: python2, env: TOXENV=reviewers-and-zadmin }
|
2018-09-05 12:23:49 +03:00
|
|
|
- { stage: python2, env: TOXENV=amo-locales-and-signing }
|
2018-09-17 10:10:18 +03:00
|
|
|
- { stage: python2, env: TOXENV=users-accounts-and-ratings }
|
2018-09-05 12:23:49 +03:00
|
|
|
- { stage: python2, env: TOXENV=main }
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=codestyle}
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=docs }
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=assets }
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=es }
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=addons }
|
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=devhub }
|
2018-09-17 10:10:18 +03:00
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=reviewers-and-zadmin }
|
2018-09-05 12:23:49 +03:00
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=amo-locales-and-signing }
|
2018-09-17 10:10:18 +03:00
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=users-accounts-and-ratings }
|
2018-09-05 12:23:49 +03:00
|
|
|
- { stage: python3, python: 3.6, env: TOXENV=main }
|
|
|
|
|
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
|
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
|
|
|
|
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:
|
2018-09-24 14:15:49 +03:00
|
|
|
- cmake
|
2016-06-13 19:22:49 +03:00
|
|
|
- swig
|
2016-12-07 22:21:35 +03:00
|
|
|
- elasticsearch
|
2017-07-19 15:58:26 +03:00
|
|
|
- gettext
|
2018-02-14 17:27:16 +03:00
|
|
|
- librsvg2-bin
|
2018-02-27 03:24:04 +03:00
|
|
|
- pngcrush
|
2018-09-24 14:15:49 +03:00
|
|
|
- uuid
|
2016-06-13 19:22:49 +03:00
|
|
|
|
2018-06-19 09:22:28 +03:00
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
- memcached
|
|
|
|
- elasticsearch
|
|
|
|
- redis
|
|
|
|
|
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
|
2018-09-24 14:15:49 +03:00
|
|
|
- export LIBGIT2=$(pwd)/libgit2/install/
|
|
|
|
- export LD_LIBRARY_PATH=$(pwd)/libgit2/install/lib
|
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
|
2018-08-21 18:03:13 +03:00
|
|
|
- nvm install 8
|
|
|
|
- nvm use 8
|
2018-09-05 12:23:49 +03:00
|
|
|
- pip install --upgrade pip wheel setuptools tox==3.2.1 tox-travis==0.10
|
2018-09-24 14:15:49 +03:00
|
|
|
- ./scripts/travis-install-libgit2.sh
|
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
|
2018-09-24 13:02:56 +03:00
|
|
|
docker run --name autograph -d -p 5500:5500 -v $(pwd)/scripts/:/scripts/ mozilla/autograph:2.3.2 /go/bin/autograph -c /scripts/autograph_travis_test_config.yaml
|
2018-02-01 23:20:56 +03:00
|
|
|
fi
|
2018-06-18 16:10:26 +03:00
|
|
|
RUNNING_IN_CI=True tox
|
2017-09-14 23:36:43 +03:00
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then
|
2018-05-31 09:09:11 +03:00
|
|
|
# Only run the extraction on "main" environment to avoid creating
|
|
|
|
# 8 pull requests for each tox environment.
|
|
|
|
if [[ $TOXENV == "main" ]]; then
|
|
|
|
bash scripts/travis-extract-l10n.sh
|
|
|
|
fi
|
2017-09-14 23:36:43 +03:00
|
|
|
fi
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2018-07-27 16:33:24 +03:00
|
|
|
after_script:
|
|
|
|
- docker stop autograph
|
|
|
|
|
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
|