github.com/confluentinc/cli@v1.100.0/azure-pipelines.yml (about) 1 strategy: 2 matrix: 3 windows: 4 imageName: 'windows-2019' 5 mac: 6 imageName: 'macOS-10.15' 7 linux: 8 imageName: 'ubuntu-18.04' 9 10 pool: 11 vmImage: $(imageName) 12 13 variables: 14 # Fixes checksum errors when downloading chrome 15 homebrew_cask_opts: '--no-quarantine' 16 CI: true 17 18 steps: 19 - template: azure-pipelines-templates/setup-secrets.yml 20 21 - template: azure-pipelines-templates/setup-go.yml 22 23 - script: | 24 curl -Ls https://github.com/github/hub/releases/download/v2.11.1/hub-linux-amd64-2.11.1.tgz | sudo tar -xvz -C /usr/bin --strip-components=2 hub-linux-amd64-2.11.1/bin/hub 25 sudo chmod 755 /usr/bin/hub 26 condition: eq( variables['Agent.OS'], 'Linux' ) 27 displayName: 'Install hub (Linux)' 28 29 - script: | 30 curl -Ls https://github.com/github/hub/releases/download/v2.11.1/hub-darwin-amd64-2.11.1.tgz | sudo gtar -xvz -C /usr/local/bin --strip-components=2 hub-darwin-amd64-2.11.1/bin/hub 31 sudo chmod 755 /usr/local/bin/hub 32 condition: eq( variables['Agent.OS'], 'Darwin' ) 33 displayName: 'Install hub (Darwin)' 34 35 - script: | 36 make deps 37 displayName: 'make deps' 38 39 # make test will build the CLI as part of its work 40 # (for integration tests), so no need to run build 41 # make targets separately 42 - script: | 43 make test 44 displayName: 'make test' 45 46 - script: | 47 make lint-licenses 48 displayName: 'make lint-licenses' 49 50 - script: | 51 bash <(curl -s https://codecov.io/bash) 52 condition: eq( variables['Agent.OS'], 'Linux' ) 53 displayName: 'Generate Codecov report (only run on Linux)' 54 55 - script: | 56 git checkout go.* 57 displayName: 'Reset go.* just in case' 58