Merge commit '3b63483d5b2de8f7bedf9d8e94e4acdeec286d25' into development

This commit is contained in:
Victor Mylle
2023-03-10 19:33:58 +00:00
6 changed files with 86 additions and 29 deletions

View File

@@ -1,30 +1,4 @@
kind: pipeline
name: sonarcube
type: docker
clone:
retries: 10
steps:
- name: code-analysis
pull: if-not-exists
image: sonarsource/sonar-scanner-cli
commands:
- sonar-scanner -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.projectVersion=$DRONE_REPO_BRANCH-$DRONE_COMMIT-$DRONE_COMMIT_AUTHOR -Dsonar.qualitygate.wait=true
environment:
SONAR_HOST:
from_secret: sonar_host
SONAR_TOKEN:
from_secret: sonar_token
SONAR_PROJECT_KEY:
from_secret: sonar_project_key
trigger:
event:
- push
- pull_request
---
kind: pipeline
name: tests
type: docker
@@ -34,8 +8,8 @@ trigger:
- pull_request
steps:
- name: unity-build-tests
image: docker.io/library/unity-test-runner:0.1
- 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
@@ -43,4 +17,35 @@ steps:
- 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
- python /app/unity_test_parser.py results_editmode.xml results_playmode.xml
---
kind: pipeline
name: builds
type: docker
trigger:
event:
- push
- pull_request
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.exe -quit --headless
# - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildLinux64Player WiiSign -quit --headless
# - /opt/unity/editors/2021.3.19f1/Editor/Unity -batchmode -nographics -projectPath . -buildOSXUniversalPlayer WiiSign.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 WeSign.exe
- git commit -m "Add build files [skip ci]"
- git push https://oauth2:ixKiNbp48zzmP5PF-epo@gitlab.ilabt.imec.be/wesign/unity-application/

8
Assets/Editor.meta Normal file
View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e01322a7098f28e45886c817e37337b5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,17 @@
#if UNITY_EDITOR
using Microsoft.Unity.VisualStudio.Editor;
using UnityEditor;
namespace GitTools
{
public static class Solution
{
public static void Sync()
{
ProjectGeneration projectGeneration = new ProjectGeneration();
AssetDatabase.Refresh();
projectGeneration.GenerateAndWriteSolutionAndProjects();
}
}
}
#endif

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5deafa746aeb89e459b500f7ff3ec2dd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 164f44c65e982f348b45f19ac022d0ac
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e7087b2c36f3b0741be3b1dea1254a15
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: