diff --git a/.drone.yml b/.drone.yml index 4f4b648..dcc8b2a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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/ diff --git a/Assets/Editor.meta b/Assets/Editor.meta new file mode 100644 index 0000000..4a662e2 --- /dev/null +++ b/Assets/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e01322a7098f28e45886c817e37337b5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Editor/CreateSolution.cs b/Assets/Editor/CreateSolution.cs new file mode 100644 index 0000000..5078216 --- /dev/null +++ b/Assets/Editor/CreateSolution.cs @@ -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 \ No newline at end of file diff --git a/Assets/Editor/CreateSolution.cs.meta b/Assets/Editor/CreateSolution.cs.meta new file mode 100644 index 0000000..df9c30c --- /dev/null +++ b/Assets/Editor/CreateSolution.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5deafa746aeb89e459b500f7ff3ec2dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.github.homuler.mediapipe/Runtime.meta b/Packages/com.github.homuler.mediapipe/Runtime.meta new file mode 100644 index 0000000..233adb8 --- /dev/null +++ b/Packages/com.github.homuler.mediapipe/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 164f44c65e982f348b45f19ac022d0ac +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.github.homuler.mediapipe/Runtime/Plugins.meta b/Packages/com.github.homuler.mediapipe/Runtime/Plugins.meta new file mode 100644 index 0000000..fd3bdc8 --- /dev/null +++ b/Packages/com.github.homuler.mediapipe/Runtime/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e7087b2c36f3b0741be3b1dea1254a15 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: