forked from MozillaFoundation/donate-wagtail
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (42 loc) · 1.75 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
dist: xenial
language: python
python: '3.7'
addons:
postgresql: '10'
env:
global:
- ALLOWED_HOSTS=localhost
- CONTENT_TYPE_NO_SNIFF=True
- DATABASE_URL=postgres://postgres@localhost:5432/donate
- DEBUG=False
- DJANGO_SECRET_KEY=secret
- SET_HSTS=False
- SSL_REDIRECT=False
- USE_S3=False
- X_FRAME_OPTIONS=DENY
- XSS_PROTECTION=True
- PIPENV_VERBOSITY=-1
- secure: Pq+Po/RH+KPTCtY2XMYbJC0r3d13xlGvZdBhPUIH/9GCwJAor4Xzdc3xD5Hat+I6dv/uH0uSa1fo171u5qSYy/1okRho4hA/tQZvqjTmqtNW7n+CpbgqLpbOiSil5In9ch0qXeoYDjY/3H3f99U8gqFoJBhLhFd8XPUvmCrsIodi+5WvLJjqjbsVl/DvLKa1kbxtPqxVxIoqn1/u+nAX2l4fxwTABztKW3d5NmQlpRHvy+vt7ql8vrRu2UQUldC6uVbYQP5Wtrz1AErAaZ9YyhDWcIvmm1b/IhEXpp6cpPxULqJQViEkDbVsOHVsWahZTN2d2tO4QX8fXUu8LBFgqr19JS46xDDlqQLXHWQefDQIXVXQrENaMXmJheqHuNcGRvIpxfRb9Hcx1V8EpbtA3ZTgoNoeqNC6zoShcjEePdEKSOlNAwQ0lU07eWO7mNjwYtcpXPLcs//JNZSW0+z5MrXFlrG6YNfFN42TvtlAuii7UGDEHIdmyhMG39FPMzLHVxEuNnM6jPpCYY/irQL0eBInoV4Qu9oqP4MwGxkrjeuSEYEUawpgSBWDDpp+gMmVimf7cejLxuBZ4sBfUcrsG1Vy092j2NOBv92DoZVeaR+bmfk1eHyTJhBjGlRtUeVlNPVOVa9lEaJe1S3zOrWDN2z8omPslxp89BPNiUbERh4=
cache:
pip: true
directories:
- "$HOME/.npm"
- "$HOME/.cache/pipenv"
matrix:
include:
- name: Python tests
install: "./travis-scripts/python-install.sh"
before_script:
- psql -c 'create database donate;' -U postgres
script:
- pipenv run flake8 donate/
- pipenv run coverage run --source './donate' ./manage.py test --settings=donate.settings --configuration=Testing
- pipenv run python manage.py test_compilemessages_ci --settings=donate.settings --configuration=Testing
after_success:
- coveralls
- name: npm tests
before_install:
- nvm install --lts=erbium
- nvm use --lts=erbium
install: "./travis-scripts/npm-install.sh"
script: npm run test