.gitlab-ci.yml 443 Bytes
Newer Older
1
2
variables:
    GREET: "Mundo"
Nane Kratzke's avatar
Nane Kratzke committed
3

4
5
stages:
    - test
Schwieger, Jana's avatar
Schwieger, Jana committed
6

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

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