lemur/.travis.yml

100 lines
2.6 KiB
YAML
Raw Normal View History

2016-10-09 09:05:50 +02:00
node_js:
- "10"
2015-08-04 06:07:28 +02:00
jobs:
2015-08-04 06:07:28 +02:00
include:
- name: "python3.7-postgresql-9.4-bionic"
dist: bionic
language: python
python: "3.7"
env: TOXENV=py37
addons:
postgresql: "9.4"
chrome: stable
services:
- xvfb
- name: "python3.7-postgresql-10-bionic"
dist: bionic
language: python
python: "3.7"
2019-04-11 01:09:55 +02:00
env: TOXENV=py37
addons:
postgresql: '10'
chrome: stable
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-server-dev-10
services:
- postgresql
- xvfb
- name: "python3.8-postgresql-12-focal"
dist: focal
language: python
python: "3.8"
env: TOXENV=py38
addons:
postgresql: '12'
chrome: stable
apt:
packages:
- postgresql-12
- postgresql-client-12
- postgresql-server-dev-12
services:
- postgresql
- xvfb
2015-08-04 06:07:28 +02:00
2015-07-21 01:13:42 +02:00
cache:
directories:
- node_modules
2015-07-23 21:26:18 +02:00
- .pip_download_cache
2015-08-04 06:07:28 +02:00
2015-07-23 21:26:18 +02:00
env:
global:
- PIP_DOWNLOAD_CACHE=".pip_download_cache"
# The following line is a temporary workaround for this issue: https://github.com/pypa/setuptools/issues/2230
- SETUPTOOLS_USE_DISTUTILS=stdlib
# do not load /etc/boto.cfg with Python 3 incompatible plugin
# https://github.com/travis-ci/travis-ci/issues/5246#issuecomment-166460882
- BOTO_CONFIG=/doesnotexist
2015-08-04 06:07:28 +02:00
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
2015-06-22 22:47:27 +02:00
before_script:
- sudo systemctl stop postgresql
# the port may have been auto-configured to use 5433 if it thought 5422 was already in use,
# for some reason it happens very often
# https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_setup_postgresql.bash#L52
- sudo sed -i -e 's/5433/5432/' /etc/postgresql/*/main/postgresql.conf
- sudo systemctl restart postgresql
2015-07-23 18:54:38 +02:00
- psql -c "create database lemur;" -U postgres
- psql -c "create user lemur with password 'lemur;'" -U postgres
2018-11-05 22:19:22 +01:00
- psql lemur -c "create extension IF NOT EXISTS pg_trgm;" -U postgres
2016-10-09 09:05:50 +02:00
- npm config set registry https://registry.npmjs.org
- npm install -g npm@latest bower
2016-10-31 19:00:15 +01:00
- pip install --upgrade setuptools
- export DISPLAY=:99.0
2015-08-04 06:07:28 +02:00
install:
- pip install coveralls
- pip install bandit
2015-07-21 01:13:42 +02:00
script:
2015-07-21 18:17:29 +02:00
- make test
- bandit -r . -ll -ii -x lemur/tests/,docs
- make test-js
2015-07-21 01:13:42 +02:00
after_success:
- coveralls
2015-07-21 01:13:42 +02:00
notifications:
email:
2020-11-03 00:49:11 +01:00
recipients:
- lemur@netflix.com
on_success: never
on_failure: always
on_cancel: never # Dependbot cancels Travis before rebase and triggers too many emails