.gitlab-ci.yml 1.59 KB
Newer Older
Valentin Buck's avatar
Valentin Buck committed
1
image: git.geomar.de:11411/digital-earth/digital-earth-viewer:latest
Valentin Buck's avatar
Valentin Buck committed
2

Valentin Buck's avatar
Valentin Buck committed
3
variables:
Valentin Buck's avatar
Valentin Buck committed
4
    #GIT_SUBMODULE_STRATEGY: recursive
Valentin Buck's avatar
Valentin Buck committed
5
6

stages:
7
8
    - build
    - test
Valentin Buck's avatar
Valentin Buck committed
9
    - deploy
Valentin Buck's avatar
Valentin Buck committed
10
11
12

before_script:
    - rustup update
13
14

build_bundled_mac:
Valentin Buck's avatar
Valentin Buck committed
15
    stage: build
16
17
18
19
20
21
22
23
    variables:
        CFLAGS: -Wno-error=implicit-function-declaration
    tags: ["mac"]
    resource_group: mac
    before_script:
        # Select nightly Rust toolchain
        - rustup override set nightly
        - rustup update
Valentin Buck's avatar
Valentin Buck committed
24
    script:
25
        - cd tileserver
26
        - cargo build --release --features "bundled gui"
Valentin Buck's avatar
Valentin Buck committed
27
28
        - cd ..
    artifacts:
Valentin Buck's avatar
Valentin Buck committed
29
        paths:
Valentin Buck's avatar
Valentin Buck committed
30
            - tileserver/target/release/digitalearthviewer
31
        expire_in: 1 hour
Valentin Buck's avatar
Valentin Buck committed
32

33
build_server_mac:
34
    stage: build
35
36
37
38
    variables:
        CFLAGS: -Wno-error=implicit-function-declaration
    tags: ["mac"]
    resource_group: mac
39
    dependencies: []
40
41
42
43
    before_script:
        # Select nightly Rust toolchain
        - rustup override set nightly
        - rustup update
44
45
46
47
48
49
50
    script: 
        - cd tileserver
        - cargo build --release --features "bundled"
        - cd ..
    artifacts:
        paths:
            - tileserver/target/release/digitalearthviewer
51
        expire_in: 1 hour
52

53
test_backend_mac:
54
    stage: test
55
56
    variables:
        CFLAGS: -Wno-error=implicit-function-declaration
57
    dependencies: []
58
59
60
61
62
63
    tags: ["mac"]
    resource_group: mac
    before_script:
        # Select nightly Rust toolchain
        - rustup override set nightly
        - rustup update
Valentin Buck's avatar
Valentin Buck committed
64
65
66
    script: 
        - cd tileserver
        - cargo test
Valentin Buck's avatar
Valentin Buck committed
67
68
        - cd ./tileserver-model
        - cargo test
Valentin Buck's avatar
Valentin Buck committed
69
        - cd ..