daml/ci/build-unix.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2019-04-04 11:33:38 +03:00
steps:
- checkout: self
fetchDepth: 2 # speed up checkout from 30sec to 7sec
2019-04-04 14:03:56 +03:00
- bash: ci/dev-env-install.sh
displayName: '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-04 14:03:56 +03:00
IS_FORK: variables['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)