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

GitLab ci Mac only

parent 388143fa
Pipeline #98537 passed with stages
in 30 minutes and 57 seconds
image: git.geomar.de:11411/digital-earth/digital-earth-viewer:latest
# image: git.geomar.de:11411/digital-earth/digital-earth-viewer:latest
variables:
#GIT_SUBMODULE_STRATEGY: recursive
......@@ -9,72 +9,7 @@ stages:
- deploy
before_script:
- rustup update
build_frontend:
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
build_server_linux:
stage: build
dependencies: []
script:
- cd tileserver
- cargo build --release --features "bundled"
- cd ..
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
test_backend_linux:
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
- rustup update
.base-mac:
variables:
......@@ -108,21 +43,3 @@ test_backend_mac:
- cd ./tileserver-model
- cargo test
- cd ..
# 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