Skip to content

Commit

Permalink
[RUM] Try to connect to licensing server
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicoj committed Dec 13, 2024
1 parent b4cac46 commit bf1b844
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
include:
- 'https://gitlab-templates.ddbuild.io/slack-notifier/v1/template.yml'

variables:
# TODO: Detect unity location in script.
UNITY_HOME: "/Applications/Unity/Unity.app/Contents/"
UNITY_PATH: "$UNITY_HOME/MacOS/Unity"
UNITY_SUPPORT_PATH: "/Library/Application Support/Unity/config"

stages:
- unit-test

.shared:
create-server-config:
- vault login -method=aws -no-print
- export UNITY_SERVER_CONFIG=$(vault kv get -field=config kv/aws/arn:aws:iam::486234852809:role/ci-dd-sdk-unity/server-config)
- mkdir -p "$UNITY_SUPPORT_PATH"
- printf "%s\n" "$UNITY_SERVER_CONFIG" > "$UNITY_SUPPORT_PATH/services-config.json"

unit-test:
stage: unit-test
- test
unit-test-mac:
stage: test
tags:
- macos:sonoma
- specific:true
script:
- !reference [.shared, create-server-config]
- $UNITY_HOME/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client --acquire-floating
- cd tools/scripts && ./run_unit_test.py
- $UNITY_HOME/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client --return-floating $TOKEN
- echo "GET / HTTP/1.1" | nc -v unity-licensing-server.us1.ddbuild.io 80

0 comments on commit bf1b844

Please sign in to comment.