-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 1.58 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
matrix:
dist: bionic
include:
- name: run unit tests
language: python
python:
- "3.8"
services:
- postgresql
before_install:
- pip install poetry
install:
- poetry install
env:
- DATABASE_URL=pgsql://haven:haven@db:5432/haven
- AUTH_TYPES=social,local
- SOCIAL_AUTH_PROVIDERS=azure-ad-tenant
before_script:
- psql -c 'CREATE USER haven;' -U postgres
- psql -c 'ALTER USER haven WITH CREATEDB;' -U postgres
script:
- poetry run pytest --cov-config=./.coveragerc --cov-report term-missing --cov haven
- name: check for missing migrations
language: python
python:
- "3.8"
before_install:
- pip install poetry
install:
- poetry install
script:
- ./manage.py makemigrations --check --dry-run --settings=haven.settings.test
- name: verify built JS files are up to date
language: node_js
node_js:
- 16
before_script:
- npm install -g gulp-cli
script:
- cd static
- npm install
- gulp
- git diff
- name: run deployment checks
language: python
python:
- "3.8"
env:
- SECRET_KEY='notasecret'
- DATABASE_URL=pgsql://haven:haven@db:5432/haven
addons:
apt:
packages:
- unixodbc-dev
before_install:
- pip install poetry
install:
- poetry install --no-dev
script:
- ./manage.py check --deploy --settings=haven.settings.production