Verified Commit c14729d4 authored by Huste, Tobias (FWCC) - 111645's avatar Huste, Tobias (FWCC) - 111645
Browse files

Add Mac build for testing

parent c0f5201d
Pipeline #92495 passed with stages
in 41 minutes and 48 seconds
......@@ -10,32 +10,33 @@ stages:
before_script:
- rustup update
build_frontend:
.base-mac:
variables:
CFLAGS: -Wno-error=implicit-function-declaration
before_script:
# Select nightly Rust toolchain
- rustup override set nightly
- rustup update
interruptible: true
tags: ["mac"]
resource_group: mac
build_bundled_mac:
extends: .base-mac
stage: build
dependencies: []
script:
- cd tileclient
- npm install
- npm run compileAssets
- npm run build
- cd ..
build_bundled_linux:
stage: build
dependencies: []
script:
- cd tileserver
- cargo build --release --features "bundled gui"
- cd ..
artifacts:
paths:
- tileserver/target/release/digitalearthviewer
expire_in: 5 days
expire_in: 1 day
build_server_linux:
build_server_mac:
extends: .base-mac
stage: build
dependencies: []
script:
- cd tileserver
- cargo build --release --features "bundled"
......@@ -43,52 +44,14 @@ build_server_linux:
artifacts:
paths:
- tileserver/target/release/digitalearthviewer
expire_in: 5 days
build_bundled_windows:
stage: build
image: git.geomar.de:11411/valentin-buck/windows-ci-hello-world
tags: ["windows"]
script:
- cd tileserver
- cargo build --release --features "bundled gui"
- cd ..
artifacts:
paths:
- tileserver/target/release/digitalearthviewer.exe
expire_in: 5 days
expire_in: 1 day
test_backend_linux:
test_backend_mac:
extends: .base-mac
stage: test
dependencies: []
script:
- cd tileserver
- cargo test
- cd ./tileserver-model
- cargo test
- cd ..
test_frontend:
stage: test
dependencies: []
script:
- cd tileclient
- npm install
- npm test
# deploy_on_testsystem:
# stage: deploy
# dependencies: [build_bundled_linux, test_backend_linux]
# rules:
# - if: '$DEPLOY == "true"'
# script:
# - mkdir -p ~/.ssh
# - chmod 700 ~/.ssh
# - ssh-keyscan digitalearth-webapps-www.geomar.de >> ~/.ssh/known_hosts
# - chmod 644 ~/.ssh/known_hosts
# - chmod 600 $SSH_PRIVATE_KEY
# - chmod 544 $SSH_PUBLIC_KEY
# - cp $SSH_PRIVATE_KEY ~/.ssh/id_rsa
# - cp $SSH_PUBLIC_KEY ~/.ssh/id_rsa.pub
# - scp -C -v -i ~/.ssh/id_rsa tileserver/target/release/tileserver 'digitalearth@digitalearth-webapps-www.geomar.de:~/'
# - ssh -i ~/.ssh/id_rsa 'digitalearth@digitalearth-webapps-www.geomar.de' 'systemctl restart digitalearthviewer'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment