forked from Geoportail-Luxembourg/geoportailv3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 1.32 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
language: python
dist: trusty
python:
- 2.7
sudo: false
before_install:
- nvm install node
install:
- createdb -E UTF8 -T template0 template_postgis -U postgres
- psql -d template_postgis -c "CREATE EXTENSION postgis;" -U postgres
- createdb -E UTF8 -T template_postgis lux -U postgres
- createuser www-data --no-superuser --no-createdb --no-createrole -U postgres
- psql -d lux -c 'CREATE SCHEMA geov3;' -U postgres
- psql -d lux -c 'CREATE SCHEMA geov3_static;' -U postgres
- psql -d lux -c "ALTER USER \"www-data\" PASSWORD 'www-data';" -U postgres
- psql -d lux -c 'GRANT SELECT ON spatial_ref_sys TO "www-data";' -U postgres
- psql -d lux -c 'GRANT ALL ON SCHEMA geov3 TO "www-data";' -U postgres
- psql -d lux -c 'GRANT ALL ON SCHEMA geov3_static TO "www-data";' -U postgres
- psql -d lux -c 'GRANT ALL ON geometry_columns TO "www-data";' -U postgres
- make -f travis.mk .build/requirements.timestamp || make -f travis.mk .build/requirements.timestamp
- make -f travis.mk .build/dev-requirements.timestamp || make -f travis.mk .build/dev-requirements.timestamp
- make -f travis.mk alembic.ini lux_alembic.ini
- .build/venv/bin/alembic upgrade head
- .build/venv/bin/alembic -c lux_alembic.ini upgrade head
- make -f travis.mk .build/build.js || make -f travis.mk .build/build.js
- make -f travis.mk build
script:
- make -f travis.mk checks