-
Notifications
You must be signed in to change notification settings - Fork 21
/
azure-pipelines.yml
108 lines (95 loc) · 3.86 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: $(Build.SourceVersion)
jobs:
- job: Linux
timeoutInMinutes: 0
pool:
vmImage: 'Ubuntu-18.04'
variables:
STAGING_DIRECTORY: /home/vsts/STAGING
STAGING_DIRECTORY_UNIX: /home/vsts/STAGING
ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i
# ESY__NPM_ROOT: /opt/hostedtoolcache/node/8.14.0/x64/lib/node_modules/esy
steps:
- script: sudo apt-get install -y mesa-common-dev libegl1-mesa-dev mesa-utils mesa-utils-extra nasm
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/publish-build-cache.yml
- job: MacOS
timeoutInMinutes: 0
pool:
vmImage: 'macOS-10.15'
variables:
STAGING_DIRECTORY: /Users/vsts/STAGING
STAGING_DIRECTORY_UNIX: /Users/vsts/STAGING
ESY__CACHE_INSTALL_PATH: /Users/vsts/.esy/3____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /Users/vsts/.esy/source/i
# ESY__NPM_ROOT: /usr/local/lib/node_modules/esy
steps:
# - script: brew update
# - script: brew install libpng ragel
- script: clang --version
- template: .ci/use-node.yml
# - template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
# - template: .ci/publish-build-cache.yml
- job: Windows
timeoutInMinutes: 0
pool:
vmImage: 'vs2017-win2016'
variables:
STAGING_DIRECTORY: C:\Users\VssAdministrator\STAGING
STAGING_DIRECTORY_UNIX: /C/Users/VssAdministrator/STAGING
ESY__CACHE_INSTALL_PATH: /C/Users/VssAdministrator/.esy/3_/i
ESY__CACHE_SOURCE_TARBALL_PATH: /C/Users/VssAdministrator/.esy/source/i
# ESY__NPM_ROOT: /C/npm/prefix/node_modules/esy
steps:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- script: npm install -g [email protected]
displayName: 'Install esy'
- script: esy
displayName: 'Run esy'
# - script: git clone https://github.com/bryphe/esy-bash
# displayName: 'Cloning esy-bash'
# - script: npm i
# displayName: 'npm i'
# workingDirectory: 'esy-bash'
# - script: esy
# displayName: 'esy'
# workingDirectory: 'esy-bash/re'
# - script: npm run build-cygwin
# displayName: 'npm run build-cygwin'
# workingDirectory: 'esy-bash'
# - script: npm run package-cygwin
# displayName: 'npm run package-cygwin'
# workingDirectory: 'esy-bash'
# - script: node ./postinstall.js
# displayName: 'esy-bash postinstall'
# workingDirectory: 'esy-bash'
# - powershell: |
# $env:ESY__ESY_BASH = "$(Build.SourcesDirectory)\esy-bash"
# echo $env:ESY__ESY_BASH
# esy
# displayName: 'esy (with modified esy-bash)'
- job: CentOS
displayName: 'Linux - CentOS - Docker Image'
timeoutInMinutes: 0
pool:
vmImage: 'Ubuntu-18.04'
variables:
STAGING_DIRECTORY: $(Build.StagingDirectory)
ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i
# ESY__NPM_ROOT: /opt/hostedtoolcache/node/8.14.0/x64/lib/node_modules/esy
steps:
- script: docker build -t centos esy/docker/centos
displayName: 'docker build'
- script: docker run --rm --mount src=`pwd`,target=/esy-skia,type=bind centos /bin/bash -c 'which ragel'
- script: docker run --rm --mount src=`pwd`,target=/esy-skia,type=bind centos /bin/bash -c 'cd esy-skia && ls -a'
- script: docker run --cap-add SYS_ADMIN --device /dev/fuse --security-opt apparmor:unconfined --rm --mount src=`pwd`,target=/esy-skia,type=bind centos /bin/bash -c 'cd esy-skia && ./esy/docker-build.sh'