forked from thepoly/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 869 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: python
matrix:
include:
- python: "3.6"
dist: trusty
sudo: true
- python: "3.7"
dist: xenial
sudo: true
services:
- docker
addons:
postgresql: "9.6"
env:
global:
- PIPENV_IGNORE_VIRTUALENVS=1
- PIPENV_DONT_USE_PYENV=1
before_install:
- pip install pipenv
- npm install -g npm@"^6.4.0"
install:
- pipenv install --dev --deploy
- npm ci
- npx webpack --config webpack.development.config.js
before_script:
- pipenv check
- pipenv run black . --check --exclude node_modules/
- pipenv run flake8 --exclude node_modules/ || true
- pipenv run pip freeze
- psql -c 'create database pipeline;' -U postgres
- pipenv run python manage.py makemigrations --check --dry-run
- pipenv run python manage.py collectstatic
script:
- pipenv run python manage.py test
- docker-compose build