kind: pipeline name: tests type: docker trigger: event: - push - pull_request steps: - name: unity-tests image: docker.io/library/unity-runner:0.1 commands: - /opt/unity/editors/2021.3.19f1/Editor/Unity -runTests -batchmode -nographics -projectPath . -testResults results_editmode.xml -testPlatform EditMode || true - /opt/unity/editors/2021.3.19f1/Editor/Unity -runTests -batchmode -nographics -projectPath . -testResults results_playmode.xml -testPlatform PlayMode || true - name: tests-parser image: docker.io/library/unity-test-parser:0.1 commands: - python /app/unity_test_parser.py results_editmode.xml results_playmode.xml --- kind: pipeline name: builds type: docker trigger: event: - push branch: - master - development - Automatic-Builds steps: - name: unity-builds image: docker.io/library/unity-runner:0.1 commands: - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildWindowsPlayer ./wesign-builds/WeSign-Windows.exe -quit --headless || true - chmod 777 -R . - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildWindowsPlayer ./wesign-builds/WeSign-Windows.exe -quit --headless - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildLinux64Player ./wesign-builds/WeSign-Linux -quit --headless - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildOSXUniversalPlayer ./wesign-builds/WeSign-MacOS.app -quit --headless - name: commit-files image: alpine/git environment: GIT_AUTHOR_NAME: DroneCI GIT_AUTHOR_EMAIL: droneci@wesign.com GIT_COMMITTER_NAME: DroneCI GIT_COMMITTER_EMAIL: droneci@wesign.com commands: - git config --global user.name "DroneCI" - git config --global user.email "droneci@wesign.com" - ls ./wesign-builds - git add -f ./wesign-builds/WeSign-Windows.exe - git add -f ./wesign-builds/WeSign-Linux - git add -f ./wesign-builds/WeSign-MacOS.app - git commit -m "Add build files [skip ci]" - git push -f https://oauth2:ixKiNbp48zzmP5PF-epo@gitlab.ilabt.imec.be/wesign/unity-application/