mirror of
https://github.com/VSCodium/vscodium
synced 2024-11-05 05:38:16 +00:00
Add script to trigger Azure pipelines build
This commit is contained in:
parent
4dbc77dbba
commit
3ccdd1171d
2 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,7 @@ before_install:
|
|||
|
||||
script:
|
||||
- ./build.sh
|
||||
- ./trigger-azure.sh
|
||||
|
||||
before_deploy:
|
||||
- ./create_zip.sh
|
||||
|
|
7
trigger-azure.sh
Executable file
7
trigger-azure.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
if [ "$AZURE_TOKEN" != "" ]; then
|
||||
if [[ "$SHOULD_BUILD" == "yes" ]]; then
|
||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic $AZURE_TOKEN" -d '{"definition":{"id":1}}' https://dev.azure.com/VSCodium/vscodium/_apis/build/builds?api-version=5.0-preview.5
|
||||
fi
|
||||
fi
|
||||
fi
|
Loading…
Reference in a new issue