summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: dc2d1c16f44b8404f82ac2e013511a41fb5588e6 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
before_script:
  - apt-get update
  - apt-get install -q -y git python-pip libpq-dev python-dev libjpeg-dev zlib1g-dev libxml2-dev libxslt1-dev libgeos-dev python-cairocffi tidy binutils libproj-dev gdal-bin
  - pip install -r requirements.txt
  - cp Makefile.example Makefile
  - cp example_project/local_settings.py.gitlab-ci example_project/local_settings.py

variables:
  POSTGRES_DB: gis
  POSTGRES_USER: gis
  POSTGRES_PASSWORD: "gis"

build:
  stage: "build"
  script: "make build_gitlab"
  services:
    - iggdrasil/postgis-1.5
  tags:
    - wheezy
  only:
    - v1.0
    - wheezy

build-v2:
  stage: "build"
  script: "make build_gitlab"
  services:
    - mdillon/postgis
  tags:
    - jessie
  only:
    - master
    - develop
    - v2.0
    - jessie

test:
  stage: "test"
  script: "make test_gitlab"
  services:
    - iggdrasil/postgis-1.5
  tags:
    - wheezy
  only:
    - v1.0
    - wheezy

test-v2:
  stage: "test"
  script: "make test_gitlab"
  services:
    - mdillon/postgis
  tags:
    - jessie
  only:
    - master
    - develop
    - v2.0
    - jessie

debian:
  stage: "test"
  script:
    - apt-get install -q -y devscripts build-essential lintian wget
    - make deb
    - wget -O /etc/apt/sources.list.d/iggdrasil.list http://deb.iggdrasil.net/dists/wheezy/iggdrasil.list
    - wget -O - http://deb.iggdrasil.net/contact@iggdrasil.net.gpg.key | apt-key add -
    - apt-get update
    - apt-get install -q -y --force-yes python-django-ishtar locales-all
    - INSTANCE=my_ishtar URL=localhost ishtar-prepare-instance
    - dpkg -i python-django-ishtar_*.deb
  services:
    - iggdrasil/postgis-1.5
  tags:
    - wheezy
  only:
    - wheezy

debian-v2:
  stage: "test"
  script:
    - apt-get install -q -y devscripts build-essential lintian wget
    - make deb
    - wget -O /etc/apt/sources.list.d/iggdrasil.list http://deb.iggdrasil.net/dists/wheezy/iggdrasil.list
    - wget -O - http://deb.iggdrasil.net/contact@iggdrasil.net.gpg.key | apt-key add -
    - apt-get update
    - apt-get install -q -y --force-yes python-django-ishtar locales-all
    - INSTANCE=my_ishtar URL=localhost ishtar-prepare-instance
    - dpkg -i python-django-ishtar_*.deb
  services:
    - mdillon/postgis
  tags:
    - jessie
  only:
    - jessie