-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
40 lines (40 loc) · 1.48 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
language: python
dist: bionic
python:
- '3.6'
node_js:
- '8'
cache:
pip: true
npm: true
services:
- postgresql
addons:
postgresql: '10'
install:
- npm install
- npm run build
- pip install -r requirements/dev.txt
- pip install coveralls
before_script:
- psql -c 'create database django;' -U postgres
- psql -c 'create database django_test;' -U postgres
script:
- python manage.py collectstatic > /dev/null
- py.test --cov
- python manage.py makemigrations --dry-run --check --noinput
- isort --diff -c adhocracy-plus apps tests
- flake8 adhocracy-plus apps tests --exclude migrations,settings
- npm run lint
- rm -rf static/
after_success:
- coveralls
deploy:
- provider: script
script: scripts/deploy.sh
on:
branch: master
env:
global:
- secure: loSDNJr/1BV5LdX2SDUvaNet3xbKNiW+PsazcSr38PylZQ/RLyDAcKzF8mxDW9LIiRpJTD0Dc8OwQlwWQWQhyUERM75gid/Sf5DxN8hfpwDNdpPvOsIrktZekir0CFhI1ezaHRWokZk3SmU8rzo6eG+uR6F1hKKP2zYDOWPKfrs/jHllbBB4p+P25IfxvdgX9t+t6aBACqUNzax9WIhmDyPPujWsDPyXOEfJcsgrGtmiCwZAAjSR+iMshWkQLh0kSmTQA/HwpuIx+T2zpWVEVu/rtxJ0FpWKQS7v2rah6wPJByNrkawGbjyhBKoKUj26Vz0Xr8SpNCu/EjAlxdQyy+GkRApGuW1+EXHwjRDjYWusfodbp/dEEnwXLugoSmRCDX8xhlc9llIGfMHKujz1dLKHoAKA6WgByVgFi0Ng0exlWZBJbX8QgbubdLXdqASj5NW3wpt7crTpz1gI7siVNPoNoa+VH+5hLMAtmX4RMDRyb5+4TnDbAf9iQYkHX+Z8D0Bxo81l4MycSuvBhK1uiO9t2dc+xZWI7rAkZdKllxDUCJAbM1kaUu9/Q7PJfQ2SJCE9DD7LaibV7iQPSmFrmrzXZax7R1QfYsb2Fd/ZzCeic/Kam87D/TdBqZ6MkZfjA/YZQD/NgEWvxo+vUm5zWUqlDAlcIpkPCREn4WjRRpc=
- DJANGO_SETTINGS_MODULE='adhocracy-plus.config.settings.travis'