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

Nane Kratzke's avatar
Nane Kratzke committed
4
stages:
Nane Kratzke's avatar
Nane Kratzke committed
5
    - info
Nane Kratzke's avatar
Nane Kratzke committed
6
    - test
Nane Kratzke's avatar
Nane Kratzke committed
7

Nane Kratzke's avatar
Nane Kratzke committed
8
9
10
11
12
13
docker:
    stage: info
    services:
        - docker:dind
    script:
        - docker info
Nane Kratzke's avatar
Nane Kratzke committed
14
        - echo $CI_REGISTRY_NAME
Nane Kratzke's avatar
Nane Kratzke committed
15

Nane Kratzke's avatar
Nane Kratzke committed
16
17
java:
    stage: test
18
    image: "openjdk:14"
Nane Kratzke's avatar
Nane Kratzke committed
19
    script:
Nane Kratzke's avatar
Nane Kratzke committed
20
21
22
23
        - javac src/*.java
        - java -cp src/ Hello $GREET > result.txt
        - cat result.txt
        - cat result.txt | grep "Hello $GREET"
24

Nane Kratzke's avatar
Nane Kratzke committed
25
26
python:
    stage: test
27
    image: "python:3-slim"
Nane Kratzke's avatar
Nane Kratzke committed
28
    script:
Nane Kratzke's avatar
Nane Kratzke committed
29
30
31
        - python src/hello.py $GREET > result.txt
        - cat result.txt
        - cat result.txt | grep "Hello $GREET"