Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (36 loc) · 1.56 KB
/
Copy pathDockerfile
File metadata and controls
42 lines (36 loc) · 1.56 KB
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
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y \
lua5.1 \
python3 \
patch \
git \
unzip \
curl \
&& rm -rf /var/lib/apt/lists/*
# Download pre-built Luau binary
RUN --mount=type=secret,id=ca-bundle \
if [ -f /run/secrets/ca-bundle ]; then export CURL_CA_BUNDLE=/run/secrets/ca-bundle; fi; \
curl -fsSLo /tmp/luau-ubuntu.zip \
https://github.com/luau-lang/luau/releases/latest/download/luau-ubuntu.zip \
&& unzip -j /tmp/luau-ubuntu.zip luau -d /usr/local/bin \
&& chmod +x /usr/local/bin/luau \
&& rm /tmp/luau-ubuntu.zip
# Verify installations
RUN lua5.1 -v && printf 'print("luau OK")\n' > /tmp/luau_check.lua && luau /tmp/luau_check.lua && rm /tmp/luau_check.lua
WORKDIR /app
COPY . /app
RUN lua5.1 tests/harness/metadata.lua \
&& timeout 60s lua5.1 tests/harness/ast-bindings.lua \
&& timeout 60s lua5.1 tests/harness/parser-sources.lua \
&& timeout 60s lua5.1 tests/harness/step-sources.lua \
&& timeout 60s lua5.1 tests/harness/source-maps.lua \
&& timeout 60s python3 tests/harness/source-maps.py \
&& timeout 60s lua5.1 tests/harness/numbers-to-expressions.lua \
&& timeout 60s lua5.1 tests/harness/cff-arity.lua \
&& timeout 60s lua5.1 tests/harness/cff-native.lua \
&& timeout 60s lua5.1 tests/harness/vm-arity.lua \
&& timeout 60s lua5.1 tests/harness/vm-prototypes.lua \
&& timeout 60s lua5.1 tests/harness/vm-fastpaths.lua \
&& timeout 60s lua5.1 tests/harness/vm-layout.lua \
&& python3 tests/harness/runner.py
ENTRYPOINT ["lua5.1", "docker-test-runner.lua"]