forked from yugabyte/brew-build
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
53 lines (45 loc) · 1.3 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
resources:
containers:
- container: centos7
image: yugabytedb/yb_build_infra_centos7:v2019-09-01T14_58_09_mbautin
# https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml
trigger:
batch: true
branches:
include:
- master
jobs:
- job: RunInContainer
pool:
vmImage: 'ubuntu-16.04'
timeoutInMinutes: 0
strategy:
matrix:
centos7:
containerResource: centos7
container: $[ variables['containerResource'] ]
steps:
- script: |
set -euxo pipefail
sudo mkdir -p /opt/yb-build
sudo chown yugabyte-ci /opt/yb-build
checkout_dir=$PWD
chmod -R a+r "$checkout_dir"
find "$checkout_dir" -executable -type f -exec chmod a+x {} \;
sudo -u yugabyte-ci -E /bin/bash -c "cd '$checkout_dir' && ./test.sh && ./build-and-release.sh"
env:
GITHUB_TOKEN: $(yugabyte.githubToken)
- job: macOS
pool:
vmImage: 'macOS-10.14'
timeoutInMinutes: 0
steps:
- script: |
set -euxo pipefail
brew install hub
sudo mkdir -p /opt/yb-build
sudo chown $USER /opt/yb-build
./test.sh
./build-and-release.sh
env:
GITHUB_TOKEN: $(yugabyte.githubToken)