2019-04-04 11:33:38 +03:00
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
|
2019-04-04 14:03:56 +03:00
|
|
|
- bash: ci/dev-env-install.sh
|
2019-04-04 15:48:52 +03:00
|
|
|
displayName: 'Build/Install the Developer Environment'
|
2019-04-04 11:33:38 +03:00
|
|
|
|
|
|
|
- bash: |
|
|
|
|
source dev-env/lib/ensure-nix
|
2019-04-04 14:03:56 +03:00
|
|
|
ci/dev-env-push.py
|
|
|
|
displayName: 'Push Developer Environment build results'
|
|
|
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
2019-04-04 11:33:38 +03:00
|
|
|
env:
|
|
|
|
# to upload to the Nix cache
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
NIX_SECRET_KEY_CONTENT: $(NIX_SECRET_KEY_CONTENT)
|
|
|
|
|
|
|
|
- bash: ci/build.sh
|
|
|
|
displayName: 'Build'
|
|
|
|
env:
|
2019-04-05 15:24:23 +03:00
|
|
|
IS_FORK: $(System.PullRequest.IsFork)
|
2019-04-04 11:33:38 +03:00
|
|
|
# to upload to the bazel cache
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: succeededOrFailed()
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
artifactName: 'Bazel execution logs'
|
|
|
|
|
|
|
|
- bash: ci/release.sh
|
|
|
|
displayName: 'Release'
|
2019-04-04 14:03:56 +03:00
|
|
|
condition: eq(variables['System.PullRequest.IsFork'], 'False')
|
2019-04-04 11:33:38 +03:00
|
|
|
env:
|
|
|
|
# to connect to bintray
|
|
|
|
JFROG_CONFIG_CONTENT: $(JFROG_CONFIG_CONTENT)
|