.gitlab-ci.yml 318 Bytes
Newer Older
Torben Rogge's avatar
Torben Rogge committed
1
2
variables:
  GREET: "Groot!"
Nane Kratzke's avatar
Nane Kratzke committed
3

Torben Rogge's avatar
Torben Rogge committed
4
5
stages:
  - test
6

Torben Rogge's avatar
Torben Rogge committed
7
8
java:
  stage: test
Torben Rogge's avatar
Torben Rogge committed
9
  image: "openjdk:14"
10
  script:
Torben Rogge's avatar
Torben Rogge committed
11
12
13
    - javac src/*.java
    - java -cp src/ Hello $GREET > result.txt
    - cat result.txt
Torben Rogge's avatar
Torben Rogge committed
14

15

Torben Rogge's avatar
Torben Rogge committed
16
17
python:
  stage: test
Torben Rogge's avatar
Torben Rogge committed
18
  image: "python:3-slim"
Torben Rogge's avatar
Torben Rogge committed
19
  script:
Torben Rogge's avatar
Torben Rogge committed
20
21
    - python src/hello.py $GREET > result.txt
    - cat result.txt
Torben Rogge's avatar
Torben Rogge committed
22

Torben Rogge's avatar
Torben Rogge committed
23