Merge commit '3b63483d5b2de8f7bedf9d8e94e4acdeec286d25' into development
This commit is contained in:
61
.drone.yml
61
.drone.yml
@@ -1,30 +1,4 @@
|
|||||||
kind: pipeline
|
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
|
name: tests
|
||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
@@ -34,8 +8,8 @@ trigger:
|
|||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: unity-build-tests
|
- name: unity-tests
|
||||||
image: docker.io/library/unity-test-runner:0.1
|
image: docker.io/library/unity-runner:0.1
|
||||||
commands:
|
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_editmode.xml -testPlatform EditMode || true
|
||||||
- /opt/unity/editors/2021.3.19f1/Editor/Unity -runTests -batchmode -nographics -projectPath . -testResults results_playmode.xml -testPlatform PlayMode || true
|
- /opt/unity/editors/2021.3.19f1/Editor/Unity -runTests -batchmode -nographics -projectPath . -testResults results_playmode.xml -testPlatform PlayMode || true
|
||||||
@@ -44,3 +18,34 @@ steps:
|
|||||||
image: docker.io/library/unity-test-parser:0.1
|
image: docker.io/library/unity-test-parser:0.1
|
||||||
commands:
|
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
8
Assets/Editor.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e01322a7098f28e45886c817e37337b5
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
17
Assets/Editor/CreateSolution.cs
Normal file
17
Assets/Editor/CreateSolution.cs
Normal 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
|
||||||
11
Assets/Editor/CreateSolution.cs.meta
Normal file
11
Assets/Editor/CreateSolution.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5deafa746aeb89e459b500f7ff3ec2dd
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Packages/com.github.homuler.mediapipe/Runtime.meta
Normal file
8
Packages/com.github.homuler.mediapipe/Runtime.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 164f44c65e982f348b45f19ac022d0ac
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: e7087b2c36f3b0741be3b1dea1254a15
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user