-
Notifications
You must be signed in to change notification settings - Fork 237
/
azure-pipelines.yml
70 lines (63 loc) · 1.7 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: rhomobile
variables:
- name: BUILD_DIR
value: $(Build.Repository.LocalPath)
- name: TRAVIS_BUILD_DIR
value: $(Build.Repository.LocalPath)
- name: OS_NAME
value: osx
- name: RHO_TARGET
value: rhosimulator_osx
- name: RHO_RUNNER_SCRIPT
value: run_app_on_simulator.sh
- name: RHO_RUBY
value: ruby-3.0.7
- name: ruby_version
value: '3.0.7'
- name: BUILD_ARTEFACTS_DIR
value: $(Pipeline.Workspace)/build_artefacts
- name: RHO_APP
value: ""
- name: QTDIR
value: $(Pipeline.Workspace)/Qt5.15.2/5.15.2/clang_64
- name: S3_JOB_DIR
value: "$(Build.SourceVersion)/${{ variables.OS_NAME }}"
- name: S3_DEPLOY_DIR
value: "$(Build.Repository.Name)/$(Build.SourceBranchName)"
trigger:
branches:
exclude:
- '*'
stages:
- stage: build
jobs:
- job: build
pool:
vmImage: 'macos-13'
steps:
# - task: Bash@3
# inputs:
# targetType: 'inline'
# script: 'env | sort'
- task: UseRubyVersion@0
inputs:
versionSpec: $(ruby_version)
- task: Bash@3
inputs:
targetType: 'inline'
script: 'mkdir $BUILD_ARTEFACTS_DIR'
- task: Bash@3
inputs:
targetType: 'inline'
script: 'gem install highline'
- script: $BUILD_DIR/.ci/azure-build.sh
- task: S3Upload@1
inputs:
regionName: 'eu-central-1'
bucketName: 'tau-autobuilds'
sourceFolder: '$(BUILD_ARTEFACTS_DIR)'
globExpressions: '**'
targetFolder: $(S3_DEPLOY_DIR)/$(S3_JOB_DIR)-$(RHO_TARGET)-$(RHO_APP)
filesAcl: 'public-read'
logRequest: true
logResponse: true