-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Ci/CD target and removed CycloneDDS dependency
- Loading branch information
1 parent
569a56c
commit 807e0fc
Showing
6 changed files
with
156 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
resources: | ||
repositories: | ||
- repository: self | ||
|
||
variables: | ||
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository | ||
MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)' | ||
|
||
jobs: | ||
- job: Linux | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
strategy: | ||
matrix: | ||
Clang 6.0 Release: | ||
CC: clang | ||
CXX: clang++ | ||
BuildType: Release | ||
USE_SANITIZER: none | ||
GENERATOR: "Unix Makefiles" | ||
|
||
GCC 5.4 Release: | ||
BuildType: Release | ||
USE_SANITIZER: none | ||
GENERATOR: "Unix Makefiles" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
- template: build.yml | ||
|
||
- job: Windows_VS19 | ||
pool: | ||
vmImage: 'windows-2019' | ||
strategy: | ||
matrix: | ||
x86_64 Release: | ||
BuildType: Release | ||
GENERATOR: "Visual Studio 16 2019" | ||
USE_SANITIZER: none | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
- template: build.yml | ||
|
||
- job: Windows_VS17 | ||
pool: | ||
vmImage: 'vs2017-win2016' | ||
strategy: | ||
matrix: | ||
x86_64 Release: | ||
BuildType: Release | ||
GENERATOR: "Visual Studio 15 2017 Win64" | ||
USE_SANITIZER: none | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
- template: build.yml | ||
|
||
|
||
- job: MacOS_10_13 | ||
pool: | ||
vmImage: 'macOS-10.13' | ||
strategy: | ||
matrix: | ||
Release Xcode 10.0: | ||
BuildType: Release | ||
USE_SANITIZER: none | ||
GENERATOR: "Unix Makefiles" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
- script: | | ||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | ||
- template: build.yml | ||
|
||
- job: MacOS_10_14 | ||
pool: | ||
vmImage: 'macOS-10.14' | ||
strategy: | ||
matrix: | ||
Release Xcode 11.0: | ||
BuildType: Release | ||
USE_SANITIZER: none | ||
GENERATOR: "Unix Makefiles" | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.7' | ||
- bash: | | ||
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_11.app/Contents/Developer" | ||
clang --version | ||
displayName: 'Set Xcode11 as default' | ||
failOnStderr: false | ||
- script: | | ||
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off | ||
- template: build.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
steps: | ||
- task: CacheBeta@0 | ||
inputs: | ||
key: maven | ||
path: $(MAVEN_CACHE_FOLDER) | ||
displayName: Cache Maven local repo | ||
- bash: | | ||
mkdir build | ||
cd build | ||
- task: CMake@1 | ||
displayName: 'CMake configure core product' | ||
inputs: | ||
cmakeArgs: '-DCMAKE_BUILD_TYPE=$(BuildType) | ||
-DCMAKE_INSTALL_PREFIX=$(Build.SourcesDirectory)/build/install | ||
-DUSE_SANITIZER=$(USE_SANITIZER) | ||
-G "$(GENERATOR)" ..' | ||
- bash: | | ||
case "$(GENERATOR)" in | ||
"Unix Makefiles") | ||
cmake --build . --config $(BuildType) --target install -- -j 4 | ||
;; | ||
"Visual Studio "*) | ||
cmake --build . --config $(BuildType) --target install -- -nologo -verbosity:minimal -maxcpucount -p:CL_MPCount=2 | ||
;; | ||
*) | ||
cmake --build . --config $(BuildType) --target install | ||
;; | ||
esac | ||
workingDirectory: build | ||
failOnStderr: false | ||
displayName: 'Compile' | ||
- script: | | ||
cmake --build . --config $(BuildType) --target package | ||
workingDirectory: build | ||
failOnStderr: false | ||
displayName: 'Create installer' | ||
- task: CopyFiles@2 | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)' | ||
targetFolder: '$(Build.ArtifactStagingDirectory)' | ||
contents: 'build/?(*.deb|*.msi|*.tar.gz|*.tar|*.zip|*.sh)' | ||
displayName: 'Copy installer' | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: idlpp_$(AGENT.JOBNAME) | ||
displayName: 'Publish installer' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.