Skip to content

Commit

Permalink
Merge pull request #79 from stripedpajamas/trigger-azure
Browse files Browse the repository at this point in the history
Add script to trigger Azure pipelines build
  • Loading branch information
stripedpajamas committed Jan 24, 2019
2 parents 4dbc77d + 3ccdd11 commit a1596e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ before_install:

script:
- ./build.sh
- ./trigger-azure.sh

before_deploy:
- ./create_zip.sh
Expand Down
7 changes: 7 additions & 0 deletions trigger-azure.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a1596e9

Please sign in to comment.