2014-08-07 15:11:48 +04:00
|
|
|
language: python
|
2019-01-21 14:00:53 +03:00
|
|
|
dist: xenial
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2014-08-07 15:11:48 +04:00
|
|
|
python:
|
2019-03-18 14:39:28 +03:00
|
|
|
- 3.6
|
2016-04-08 10:21:52 +03:00
|
|
|
|
2018-09-05 12:23:49 +03:00
|
|
|
jobs:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
2019-02-08 12:33:20 +03:00
|
|
|
- { env: TOXENV=codestyle }
|
|
|
|
- { env: TOXENV=docs }
|
|
|
|
- { env: TOXENV=assets }
|
|
|
|
- { env: TOXENV=es }
|
2019-08-15 14:57:43 +03:00
|
|
|
- { env: TOXENV=addons-versions-files-ratings }
|
2019-02-08 12:33:20 +03:00
|
|
|
- { env: TOXENV=devhub }
|
|
|
|
- { env: TOXENV=reviewers-and-zadmin }
|
|
|
|
- { env: TOXENV=amo-lib-locales-and-signing }
|
|
|
|
- { env: TOXENV=main }
|
2018-09-05 12:23:49 +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
|
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
|
2019-06-25 15:04:56 +03:00
|
|
|
# Unfortunately we require the most recent libmagic-dev version to make use of more recent
|
|
|
|
# JSON detection features which we require for the code-manager related APIs
|
|
|
|
- echo "deb http://archive.ubuntu.com/ubuntu disco main" | sudo tee -a /etc/apt/sources.list
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -t disco libmagic-dev libmagic1 libmagic-mgc
|
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-12-04 09:36:18 +03:00
|
|
|
- pip install --no-deps -r requirements/travis_base.txt
|
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/
|
2019-02-13 18:21:05 +03:00
|
|
|
- sudo touch /addons-server-docker-container
|
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
|
|
|
- |
|
2019-06-12 16:01:36 +03:00
|
|
|
if [ $TRAVIS_EVENT_TYPE != "cron" ]; then
|
|
|
|
if [ $TOXENV == "amo-lib-locales-and-signing" ] || [ $TOXENV == "reviewers-and-zadmin" ] ; then
|
2019-06-06 13:37:30 +03:00
|
|
|
docker run --name autograph -d -p 5500:5500 -v $(pwd)/scripts/:/scripts/ mozilla/autograph:3.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
|
|
|
|
- |
|
2019-06-12 16:01:36 +03:00
|
|
|
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.
|
2019-06-12 16:01:36 +03:00
|
|
|
if [ $TOXENV == "main" ]; then
|
2018-05-31 09:09:11 +03:00
|
|
|
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:
|
2020-02-14 16:10:10 +03:00
|
|
|
slack:
|
2020-02-18 17:35:07 +03:00
|
|
|
if: branch = master
|
2020-02-17 15:55:07 +03:00
|
|
|
rooms:
|
|
|
|
- secure: VuUiui/fUMV6cXrYpTXrzLnYurcsJQOeczWA2rvsq8fCFjSe4MXMgv/kF/2b7F7O8mmEgQAUGozJAaChmYCiwDFOtki7bUBGl6yOm5OWW1ZnkTxObXB7pKG/aFT0VoF4EKIRp46M4tT8yqZ0m+CXP8/rITE0aLJoz/xmGzOaCc8=
|
2014-08-07 15:11:48 +04:00
|
|
|
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
|