2015-07-21 01:13:42 +02:00
|
|
|
language: python
|
2019-04-11 01:18:49 +02:00
|
|
|
dist: xenial
|
2016-10-09 09:05:50 +02:00
|
|
|
|
|
|
|
node_js:
|
2016-12-13 17:50:12 +01:00
|
|
|
- "6.2.0"
|
2015-08-04 06:07:28 +02:00
|
|
|
|
2015-07-23 19:01:18 +02:00
|
|
|
addons:
|
|
|
|
postgresql: "9.4"
|
2015-08-04 06:07:28 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2019-04-11 01:09:55 +02:00
|
|
|
- python: "3.7"
|
|
|
|
env: TOXENV=py37
|
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"
|
2020-09-02 02:28:42 +02:00
|
|
|
# The following line is a temporary workaround for this issue: https://github.com/pypa/setuptools/issues/2230
|
|
|
|
- SETUPTOOLS_USE_DISTUTILS=stdlib
|
2016-11-09 00:22:50 +01:00
|
|
|
# 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
|
|
|
|
2015-06-22 22:47:27 +02:00
|
|
|
before_script:
|
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
|
2015-07-21 17:49:34 +02:00
|
|
|
- npm install -g bower
|
2016-10-31 19:00:15 +01:00
|
|
|
- pip install --upgrade setuptools
|
2015-08-04 06:07:28 +02:00
|
|
|
|
2016-11-17 01:44:51 +01:00
|
|
|
install:
|
|
|
|
- pip install coveralls
|
2017-04-25 03:37:03 +02:00
|
|
|
- pip install bandit
|
2016-11-17 01:44:51 +01:00
|
|
|
|
2015-07-21 01:13:42 +02:00
|
|
|
script:
|
2015-07-21 18:17:29 +02:00
|
|
|
- make test
|
2017-04-25 03:37:03 +02:00
|
|
|
- bandit -r . -ll -ii -x lemur/tests/,docs
|
2015-07-21 01:13:42 +02:00
|
|
|
|
2016-11-17 01:44:51 +01:00
|
|
|
after_success:
|
|
|
|
- coveralls
|
|
|
|
|
2015-07-21 01:13:42 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
2018-11-05 22:19:22 +01:00
|
|
|
ccastrapel@netflix.com
|