58 lines
2.1 KiB
YAML
58 lines
2.1 KiB
YAML
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
|
|
|
|
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 ./builds/WeSign-Windows.exe -quit --headless || true
|
|
- chmod 777 -R .
|
|
- /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildWindowsPlayer ./builds/WeSign-Windows.exe -quit --headless
|
|
- /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildLinux64Player ./builds/WeSign-Linux -quit --headless
|
|
- /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildOSXUniversalPlayer ./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"
|
|
- git add ./builds/WeSign-Windows.exe
|
|
- git add ./builds/WeSign-Linux
|
|
- git add ./builds/WeSign-MacOS.app
|
|
- git commit -m "Add build files [skip ci]"
|
|
- git push https://oauth2:ixKiNbp48zzmP5PF-epo@gitlab.ilabt.imec.be/wesign/unity-application/
|