set up license for every unity invocation

This commit is contained in:
Branden J Brown 2023-07-17 11:45:09 -05:00
parent 2a4f2449d7
commit 3c31c751f2
1 changed files with 27 additions and 27 deletions

View File

@ -23,18 +23,15 @@ pipeline:
- test "$UNITY_VERSION" = $(grep "m_EditorVersion:" "${UNITY_DIR}/ProjectSettings/ProjectVersion.txt" | cut -d' ' -f2) - test "$UNITY_VERSION" = $(grep "m_EditorVersion:" "${UNITY_DIR}/ProjectSettings/ProjectVersion.txt" | cut -d' ' -f2)
setup-license: setup-license:
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION} image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
commands: commands: &license
- chmod +x ${UNITY_DIR}/ci/before_script.sh - chmod +x ${UNITY_DIR}/ci/before_script.sh
- ${UNITY_DIR}/ci/before_script.sh - ${UNITY_DIR}/ci/before_script.sh
- ls -lA /root
- find /root/.local
secrets: [unity_license] secrets: [unity_license]
test-playmode: test-playmode:
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION} image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
group: test group: test
commands: commands:
- echo $HOME - <<: *license
- find /root/.local
- chmod +x ${UNITY_DIR}/ci/test.sh - chmod +x ${UNITY_DIR}/ci/test.sh
- ${UNITY_DIR}/ci/test.sh - ${UNITY_DIR}/ci/test.sh
environment: environment:
@ -42,12 +39,12 @@ pipeline:
- TESTING_TYPE=NUNIT - TESTING_TYPE=NUNIT
- VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER} - VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER}
- VERSION_BUILD_VAR=${CI_COMMIT_HASH} - VERSION_BUILD_VAR=${CI_COMMIT_HASH}
secrets: [unity_license]
test-editmode: test-editmode:
image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION} image: ${IMAGE}:${UNITY_VERSION}-base-${IMAGE_VERSION}
group: test group: test
commands: commands:
- echo $HOME - <<: *license
- find /root/.local
- chmod +x ${UNITY_DIR}/ci/test.sh - chmod +x ${UNITY_DIR}/ci/test.sh
- ${UNITY_DIR}/ci/test.sh - ${UNITY_DIR}/ci/test.sh
environment: environment:
@ -55,16 +52,19 @@ pipeline:
- TESTING_TYPE=NUNIT - TESTING_TYPE=NUNIT
- VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER} - VERSION_NUMBER_VAR=${CI_COMMIT_BRANCH}-${CI_BUILD_NUMBER}
- VERSION_BUILD_VAR=${CI_COMMIT_HASH} - VERSION_BUILD_VAR=${CI_COMMIT_HASH}
secrets: [unity_license]
build-standalone-windows: build-standalone-windows:
image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION} image: ${IMAGE}:${UNITY_VERSION}-windows-mono-${IMAGE_VERSION}
group: build group: build
commands: commands:
- <<: *license
- chmod +x ./ci/build.sh - chmod +x ./ci/build.sh
- ./ci/build.sh - ./ci/build.sh
environment: environment:
- BUILD_TARGET=StandaloneWindows64 - BUILD_TARGET=StandaloneWindows64
- VERSION_NUMBER_VAR=${CI_COMMIT_TAG} - VERSION_NUMBER_VAR=${CI_COMMIT_TAG}
- VERSION_BUILD_VAR=${CI_COMMIT_HASH} - VERSION_BUILD_VAR=${CI_COMMIT_HASH}
secrets: [unity_license]
when: when:
event: tag event: tag
package: package: