diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-11-09 15:42:49 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:19 +0100 |
commit | 654c98684dc423e705d57be3b2755c9e8024edf2 (patch) | |
tree | 76456cd5ad6d9a71cc25a31d35f55c8c3d4f0067 | |
parent | e9f71aa7435ad265e4a7d53978f8ce24033477d5 (diff) | |
download | Ishtar-654c98684dc423e705d57be3b2755c9e8024edf2.tar.bz2 Ishtar-654c98684dc423e705d57be3b2755c9e8024edf2.zip |
Update gitlab CI
-rw-r--r-- | .gitlab-ci.yml | 27 | ||||
-rw-r--r-- | example_project/local_settings.py.gitlab-ci | 2 |
2 files changed, 14 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7a41c5b3..b33ea4728 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ before_script: - dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=$LANG - pip3 install -r requirements.txt - cp Makefile.example Makefile + - sed -i -e 's/"registration"/"django_registration"/' example_project/settings.py - cp example_project/local_settings.py.gitlab-ci example_project/local_settings.py variables: @@ -13,42 +14,40 @@ variables: POSTGRES_USER: gis POSTGRES_PASSWORD: "gis" -build-v3: +build-v4: stage: "build" script: "make build_gitlab" services: - - mdillon/postgis + - postgis/postgis:13-3.3 tags: - - buster + - bullseye only: - - main - - develop + - WIP/v4.0 -test-v3: +test-v4: stage: "test" script: "make test_gitlab" services: - - mdillon/postgis + - postgis/postgis:13-3.3 tags: - - buster + - bullseye only: - - main - - develop + - WIP/v4.0 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 /etc/apt/sources.list.d/iggdrasil.list http://deb.iggdrasil.net/dists/bullseye/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 + - postgis/postgis:13-3.3 tags: - - buster + - bullseye only: - - buster + - bullseye diff --git a/example_project/local_settings.py.gitlab-ci b/example_project/local_settings.py.gitlab-ci index b8f40b8bb..bc842f004 100644 --- a/example_project/local_settings.py.gitlab-ci +++ b/example_project/local_settings.py.gitlab-ci @@ -4,7 +4,7 @@ DATABASES = { 'NAME': 'gis', 'USER': 'gis', 'PASSWORD': 'gis', - 'HOST': 'mdillon-postgis', + 'HOST': 'postgis-postgis', 'PORT': '5432', } } |