Created
August 16, 2017 02:33
-
-
Save LegoStormtroopr/1be5d478b95762d3f8690b8b2e8a029f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lets run on the new infrastructure | |
sudo: false | |
language: python | |
python: | |
- "3.5" | |
install: | |
- pip install tox codecov coveralls | |
env: | |
- env: DJANGO_VERSION='1.11' DB=postgres SEARCH=elastic | |
- env: DJANGO_VERSION='1.11' DB=postgres SEARCH=elastic | |
- env: DJANGO_VERSION='1.11' DB=sqlite SEARCH=whoosh | |
- env: DJANGO_VERSION='1.11' DB=postgres SEARCH=whoosh | |
- env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=whoosh | |
- env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=elastic | |
# Possible failures: | |
- DJANGO_VERSION='1.11' DB=sqlite SEARCH=whoosh VARIANT=haystack | |
- DJANGO_VERSION='1.11' DB=sqlite SEARCH=elastic VARIANT=haystack | |
matrix: | |
allow_failures: | |
- env: DJANGO_VERSION='1.11' DB=sqlite SEARCH=whoosh VARIANT=haystack | |
- env: DJANGO_VERSION='1.11' DB=sqlite SEARCH=elastic VARIANT=haystack | |
services: | |
- postgresql | |
- redis-server | |
- elasticsearch | |
- mariadb | |
jobs: | |
include: | |
- stage: stylecheck | |
script: tox -e pep8 --skip-missing-interpreters | |
- stage: documentation | |
script: tox -e docs --skip-missing-interpreters | |
- stage: test | |
script: | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=postgres SEARCH=elastic | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=postgres SEARCH=elastic | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=sqlite SEARCH=whoosh | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=postgres SEARCH=whoosh | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=whoosh | |
before_script: &before_maria_script | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=elastic | |
before_script: &before_maria_script | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=elastic | |
before_script: &before_maria_script | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: test | |
env: DJANGO_VERSION='1.11' DB=mariadb SEARCH=elastic | |
before_script: &before_maria_script | |
before_script: &before_elasticsearch_script | |
script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
- stage: accessibility | |
script: tox -e ally-metadata_item --skip-missing-interpreters | |
- script: tox -e ally-metadata_action --skip-missing-interpreters | |
- script: tox -e ally-static --skip-missing-interpreters | |
after_success: | |
- coveralls | |
- codecov | |
.test_script: tox -e dj$DJANGO_VERSION-test-linux-db-$DB-search-$SEARCH --skip-missing-interpreters | |
.addons: | |
apt: | |
sources: | |
- elasticsearch-2.x | |
packages: | |
- elasticsearch | |
code_climate: | |
repo_token: ac63d774ebdd641ef502acf1588b36248726a28a50e4e1f4ba4295a157477f54 | |
mariadb: '10.1' | |
.before_maria_script: | |
# Make a MariaDB database | |
# Fix wierdness with MariaDB on Travis - https://github.com/mozilla/kitsune/pull/2453/commits/229db28973f00dfc4fa7b386f266caf3417966a0 | |
- mysql -e 'create database aristotle_test_db;' -u root | |
- mysql -e 'SET GLOBAL wait_timeout = 36000;' | |
- mysql -e 'SET GLOBAL max_allowed_packet = 134209536;' | |
.before_elasticsearch_script: | |
- if [[ $SEARCH == elasticsearch ]]; then sleep 10; fi | |
.before_postgres_script: | |
# Make a posgres database | |
- if [[ $DB == postgres ]]; then psql -c 'create database aristotle_test_db;' -U postgres; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment