This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 196
/
focal.yaml
149 lines (133 loc) · 3.58 KB
/
focal.yaml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
schemaVersion: "2.0.0"
metadataTest:
entrypoint: []
cmd: ["bash"]
workdir: "/"
user: "buildbot"
envVars:
- key: TARGETARCH
value: "^(amd64|arm64)$"
isRegex: true
- key: NF_IMAGE_NAME
value: focal
- key: NF_IMAGE_TAG
value: "^.+" # checks if it is set
isRegex: true
- key: NF_IMAGE_VERSION
value: "^.+" # checks if it is set
isRegex: true
- key: LANGUAGE
value: "en_US:en"
- key: LANG
value: "en_US.UTF-8"
- key: LC_ALL
value: "en_US.UTF-8"
- key: PATH
value: "/home/linuxbrew/.linuxbrew/bin:\
/opt/buildhome/.swiftenv/bin:\
/opt/buildhome/.swiftenv/shims:\
/opt/buildhome/.php:\
/opt/buildhome/.binrc/bin:\
/opt/buildhome/.deno/bin:\
/usr/local/rvm/bin:\
/usr/local/sbin:\
/usr/local/bin:\
/usr/sbin:\
/usr/bin:\
/sbin:/bin:\
/opt/buildhome/.cask/bin:\
/opt/buildhome/.gimme/bin:\
/opt/buildhome/.dotnet/tools:\
/opt/buildhome/.dotnet:\
/opt/buildhome/.cargo/bin"
labels:
- key: maintainer
value: Netlify
fileExistenceTests:
- name: "Home directory"
path: "/opt/buildhome/"
shouldExist: true
permissions: "drwxr-xr-x"
uid: 2500 # buildbot
gid: 2500 # buildbot
- name: Functions install script
path: "/opt/build-bin/run-build-functions.sh"
shouldExist: true
- name: "NVM install script"
path: "/opt/buildhome/.nvm/nvm.sh"
shouldExist: true
permissions: "-rw-r--r--"
uid: 2500 # buildbot
gid: 2500 # buildbot
commandTests:
- name: "zstd compression library"
command: "zstd"
args: ["--version"]
expectedOutput: ["zstd command line interface 64-bits v1.4.8"]
- name: "wkhtmltopdf"
command: "wkhtmltopdf"
args: ["-V"]
expectedOutput: ["wkhtmltopdf 0.12.6"]
- name: "vips is installed and CLI tools are available"
command: "vips"
args: ["-v"]
expectedOutput: ["vips-8.9.1-Sun"]
- name: "NODE"
command: "bash"
args:
- "-c"
- |
source /opt/buildhome/.nvm/nvm.sh
echo "nvm: $(nvm --version)"
echo "Node.js: $(node --version)"
echo "Yarn: $(yarn --version)"
echo "npm: $(npm --version)"
echo "pnpm: $(pnpm --version)"
expectedOutput:
- "Node.js: v16.*.*"
- "nvm: 0.39.1"
- "Yarn: 1.22.*"
- "npm: 8.*.*"
- "pnpm: 7.*.*"
- name: hugo
command: "hugo"
args: ["version"]
expectedOutput: ["hugo v0.85.0"]
- name: lz4 compression
command: "lz4"
args: ["--version"]
expectedError: # they print the version out on stderr
- "LZ4 command line interface 64-bits v1.8.0, by Yann Collet"
- name: "PHP"
command: "php"
args: ["--version"]
expectedOutput:
- PHP 8\.\d+\.\d+ \(cli\)
- name: Golang
command: "bash"
args:
- "-c"
- |
source /opt/build-bin/run-build-functions.sh
install_go 1.18 > /dev/null
go version
expectedOutput:
- go version go1.18 linux/(amd64|arm64)
- name: "DOTNet version 6.0 is installed and available at startup"
command: "dotnet"
args: ["--version"]
expectedOutput: ["6.0"]
- name: "Swift"
command: "swiftenv"
args: ["--version"]
expectedOutput: ["swiftenv 1.5.0"]
- name: "Rustup"
command: "rustup"
args: ["--version"]
expectedOutput:
- rustup 1\.\d+\.\d+
- name: "Musl library and its tools are available"
command: "musl-gcc"
args: ["--version"]
expectedOutput:
- Ubuntu 9\.4\.\d+ # version of gcc, as musl-gcc is just a wrapper