forked from camptocamp/c2cgeoform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.17 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
language: python
sudo: false
dist: trusty
python:
- "3.6"
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.6-postgis-2.3
git:
depth: 1
env:
global:
- secure: "XqebytZsr/yLZ/CfRywgtjVMAFpcBB2NwWmJiTwvyVucRTvsjzSARwm/hY62apdZIDtDeA6KWNdriMRHlABBPvUkGIxyOL7KQWGsMHgOWzcTfla2igeiRfxHvzIcPoKXGbzJd+WZWo6LFKGmIJ1vvI0AqJRxfLrg+syOI3cD2J8="
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 10
- npm -version
- make build
before_script:
- psql -c "CREATE USER \"www-data\" WITH PASSWORD 'www-data';" -U postgres
- psql -d postgres -c "CREATE DATABASE c2cgeoform_demo_tests OWNER \"www-data\";" -U postgres
- psql -d c2cgeoform_demo_tests -c "CREATE EXTENSION postgis;" -U postgres
script: make check && make test
deploy:
- provider: script
skip_cleanup: true
script: travis/deploy-pypi
on:
tags: true
repo: camptocamp/c2cgeoform
python: '3.6'
- provider: script
skip_cleanup: true
script: travis/deploy-pypi
on:
condition: '"${TRAVIS_EVENT_TYPE}" = cron'
repo: camptocamp/c2cgeoform
python: '3.6'