-
Notifications
You must be signed in to change notification settings - Fork 14
/
.gitlab-ci.yml
112 lines (105 loc) · 2.89 KB
/
.gitlab-ci.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
stages:
- build_server
- build
- test
variables:
GIT_SUBMODULE_STRATEGY: recursive
REGISTRY: "mathinstitut"
DB: "pgsql"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: "trust"
build_server_binary:
stage: build_server
image: golang
tags:
- docker
script:
- ./buildweb.sh
artifacts:
paths:
- bin/web
expire_in: 1 week
build_goemaxima_containers:
image: "docker:latest"
stage: build
tags:
- docker
before_script:
- docker login -u mathinstitut -p "$DOCKERHUB_PASS" docker.io
script:
- ./build.sh "$REGISTRY" "$CI_COMMIT_TAG"
build_gitrollout:
image: "docker:latest"
stage: build
tags:
- docker
before_script:
- docker login -u mathinstitut -p "$DOCKERHUB_PASS"
script:
- docker build -t mathinstitut/git-rollout:latest git-rollout
- docker push mathinstitut/git-rollout:latest
only:
changes:
- git-rollout/**
- .gitlab-ci.yml
test_maxima:
image: "mathinstitut/moodle-ci-stack:latest"
stage: test
services:
- "postgres:latest"
- "mathinstitut/goemaxima:${TEST_VERSION}-dev"
before_script: []
script:
- export TEST_URL="http://localhost:8080/goemaxima"
- bash ./testimage.sh /tmp/moodle
when: manual
tags:
- docker
# the tests do not work perfectly for older versions
# because of sbcl issues
allow_failure: true
parallel:
matrix:
- TEST_VERSION: "2023102700"
QSTACK_VERSION: "v4.4.6"
MOODLE_BRANCH: "MOODLE_400_STABLE"
- TEST_VERSION: "2023072101"
QSTACK_VERSION: "v4.4.5"
MOODLE_BRANCH: "MOODLE_400_STABLE"
- TEST_VERSION: "2023060500"
QSTACK_VERSION: "v4.4.4"
MOODLE_BRANCH: "MOODLE_400_STABLE"
- TEST_VERSION: "2023052400"
QSTACK_VERSION: "v4.4.3"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2023010400"
QSTACK_VERSION: "v4.4.2"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2022082900"
QSTACK_VERSION: "v4.4.1"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2022071300"
QSTACK_VERSION: "v4.4.0"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2022071300"
QSTACK_VERSION: "v4.4.0"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2022060100"
QSTACK_VERSION: "v4.3.11"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2021120900"
QSTACK_VERSION: "v4.3.10"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2020120600"
QSTACK_VERSION: "v4.3.8"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2020101501"
QSTACK_VERSION: "v4.3.7"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2020100900"
QSTACK_VERSION: "v4.3.6"
MOODLE_BRANCH: "MOODLE_39_STABLE"
- TEST_VERSION: "2020070100"
QSTACK_VERSION: "v4.3.4"
MOODLE_BRANCH: "MOODLE_39_STABLE"