Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yiming Jing
committed
Apr 1, 2019
1 parent
e64beba
commit ef72152
Showing
11 changed files
with
120 additions
and
60 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
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,5 @@ | ||
steps: | ||
- script: | | ||
docker run --cpuset-cpus="0" --security-opt seccomp=unconfined -v "$PWD:/volume" xd009642/tarpaulin sh -c "cargo tarpaulin --out Xml" | ||
bash <(curl -s https://codecov.io/bash) | ||
displayName: cargo-tarpaulin |
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,15 @@ | ||
steps: | ||
- bash: | | ||
mkdir build && cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=$(Build.BinariesDirectory)/inst/usr/local .. | ||
make && make install | ||
du -sh $(Build.BinariesDirectory)/inst/usr/local/lib/* | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
displayName: "CMake build (Linux/macOS)" | ||
- bash: | | ||
mkdir build && cd build | ||
cmake -G "Visual Studio 15 2017 Win64" .. | ||
cmake --build . | ||
"C:/Program Files/CMake/bin/cpack.exe" -D CPACK_GENERATOR="NSIS64" | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
displayName: "CMake build (Windows)" |
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,23 @@ | ||
steps: | ||
- bash: | | ||
MY_TAG="$(Build.SourceBranch)" | ||
MY_TAG=${MY_TAG#refs/tags/} | ||
echo $MY_TAG | ||
echo "##vso[task.setvariable variable=build.my_tag]$MY_TAG" | ||
displayName: "Create the TAG variable" | ||
- task: ArchiveFiles@2 | ||
displayName: Generate release tarballs | ||
condition: ne( variables['Agent.OS'], 'Windows_NT' ) | ||
inputs: | ||
rootFolderOrFile: '$(Build.BinariesDirectory)/inst' | ||
includeRootFolder: false | ||
archiveType: 'tar' | ||
tarCompression: 'gz' | ||
archiveFile: '$(Build.ArtifactStagingDirectory)/MesaLink-$(build.my_tag)-$(arch).tar.gz' | ||
- task: CopyFiles@2 | ||
displayName: Copy the NSIS installer | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
inputs: | ||
sourceFolder: '$(Build.SourcesDirectory)/build' | ||
contents: 'MesaLink*.exe' | ||
targetFolder: '$(Build.ArtifactStagingDirectory)' |
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,14 @@ | ||
steps: | ||
- task: GithubRelease@0 | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) | ||
inputs: | ||
gitHubConnection: 'mesalink' | ||
repositoryName: 'mesalock-linux/mesalink' | ||
action: 'edit' | ||
target: '$(build.sourceVersion)' | ||
tag: '$(build.my_tag)' | ||
tagSource: 'manual' | ||
assets: '$(Build.ArtifactStagingDirectory)/*' | ||
title: '$(build.my_tag)' | ||
assetUploadMode: 'replace' | ||
addChangeLog: false |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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