lemur/.travis.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2015-07-20 16:13:42 -07:00
language: python
2019-04-10 16:18:49 -07:00
dist: xenial
2016-10-09 00:05:50 -07:00
node_js:
- "6.2.0"
2015-08-03 21:07:28 -07:00
2015-07-23 10:01:18 -07:00
addons:
postgresql: "9.4"
2015-08-03 21:07:28 -07:00
matrix:
include:
2019-04-10 16:09:55 -07:00
- python: "3.7"
env: TOXENV=py37
2015-08-03 21:07:28 -07:00
2015-07-20 16:13:42 -07:00
cache:
directories:
- node_modules
2015-07-23 12:26:18 -07:00
- .pip_download_cache
2015-08-03 21:07:28 -07:00
2015-07-23 12:26:18 -07: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-03 21:07:28 -07:00
2015-06-22 13:47:27 -07:00
before_script:
2015-07-23 09:54:38 -07:00
- psql -c "create database lemur;" -U postgres
- psql -c "create user lemur with password 'lemur;'" -U postgres
2018-11-05 13:19:22 -08:00
- psql lemur -c "create extension IF NOT EXISTS pg_trgm;" -U postgres
2016-10-09 00:05:50 -07:00
- npm config set registry https://registry.npmjs.org
2015-07-21 08:49:34 -07:00
- npm install -g bower
2016-10-31 11:00:15 -07:00
- pip install --upgrade setuptools
2015-08-03 21:07:28 -07:00
install:
- pip install coveralls
- pip install bandit
2015-07-20 16:13:42 -07:00
script:
2015-07-21 09:17:29 -07:00
- make test
- bandit -r . -ll -ii -x lemur/tests/,docs
2015-07-20 16:13:42 -07:00
after_success:
- coveralls
2015-07-20 16:13:42 -07:00
notifications:
email:
2018-11-05 13:19:22 -08:00
ccastrapel@netflix.com