.gitlab-ci.yml 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
default:
  image: mjtest

stages:
  - run

variables:
  GRADLE_USER_HOME: "gradle-cache"
I-Al-Istannen's avatar
I-Al-Istannen committed
9
  FLAMMENWEHRFER_AUTH: "$FLAMMENWEHRFER_AUTH"
10

uxrog's avatar
uxrog committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
linter:
  stage: run

  only:
    - merge_requests
    - master

  # Cache stack
  cache:
    key: "stack_cache"
    paths:
      - stack-cache

  script:
25
    - stack --stack-root "$PWD/stack-cache" ./Lint.hs lexer syntax
uxrog's avatar
uxrog committed
26
27
28
29

  tags:
    - alive

30
31
32
33
gruppen:
  stage: run
  only:
    - merge_requests
uxwlu's avatar
uxwlu committed
34
    - master
35
36
37
38
39
40
41
42
43
44

  # Cache dependencies
  cache:
    key: "dependency_cache"
    paths:
      - gradle-cache
      - repository

  parallel:
    matrix:
I-Al-Istannen's avatar
I-Al-Istannen committed
45
46
47
48
49
      - Gruppe: 1
        GITHUB_PATH: ["Firmwehr/gentle"]
        USE_FLAMMENWEHRFER: 1
      - Gruppe: 2
        GITHUB_PATH: ["compilerpraktikum/compiler"]
uudyh's avatar
uudyh committed
50
        USE_FLAMMENWEHRFER: 1
I-Al-Istannen's avatar
I-Al-Istannen committed
51
52
53
54
55
56
57
58
59
      - Gruppe: 3
        GITHUB_PATH: ["larsk21/compiler-minijava"]
        USE_FLAMMENWEHRFER: 0
      - Gruppe: 4
        GITHUB_PATH: ["iComputerfreak/DerCompiler"]
        USE_FLAMMENWEHRFER: 0
      - Gruppe: 5
        GITHUB_PATH: ["CompPrakt21/Compiler"]
        USE_FLAMMENWEHRFER: 0
60
61
62

  script:
    - export GRADLE_USER_HOME="$PWD/gradle-cache"
63
    - export MAVEN_OPTS="-Dmaven.repo.local=$PWD/repository"
I-Al-Istannen's avatar
I-Al-Istannen committed
64
    - git clone "https://github.com/$GITHUB_PATH" /compiler-under-test
65
66
    - /compiler-under-test/build
    - ln -s "$PWD" "/mjtest/tests"
I-Al-Istannen's avatar
I-Al-Istannen committed
67
68
    - export AUTH="$FLAMMENWEHRFER_AUTH"
    - export USE_FLAMMENWEHRFER="$USE_FLAMMENWEHRFER"
uxwlu's avatar
uxwlu committed
69
    - ./flammenwehrfer.sh
70
71
  tags:
    - alive