File tree 3 files changed +19
-13
lines changed 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 91
91
python scripts/test.py
92
92
93
93
build-docker-image :
94
- executor : bionic
94
+ machine : true # required for testing files permissions
95
95
steps :
96
96
- checkout
97
- - run :
98
- name : install docker
99
- command : apt-get update -q && apt-get install -q -y docker.io
100
- - setup_remote_docker
101
97
# build and test the latest released version of EMSDK
102
98
- run :
103
99
name : build
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env make
2
2
3
3
# Emscripten version to build: Should match the version that has been already released.
4
- # i.e.: 1.38.45, 1.38.45-upstream
4
+ # i.e.: 1.39.18
5
5
version =
6
6
alias =
7
7
@@ -11,21 +11,32 @@ ifndef version
11
11
endif
12
12
13
13
build : .TEST
14
- docker build --network host --build-arg=EMSCRIPTEN_VERSION=${version} -upstream --tag emscripten/emsdk:${version} .
14
+ docker build --network host --build-arg=EMSCRIPTEN_VERSION=${version} --tag emscripten/emsdk:${version} .
15
15
16
16
test : .TEST
17
- # compilation without root
18
- docker run --rm -u 1000:1000 -v ` pwd` :/src -w /src emscripten/emsdk:${version} emcc -c main.c -o main
17
+ # compilation as non-root
18
+ docker run --rm -u 1000:1000 -v ` pwd` :/src -w /src emscripten/emsdk:${version} \
19
+ bash -c " \
20
+ mkdir -p .test \
21
+ && echo ' int main() { return 0; }' > .test/main.c \
22
+ && emcc -c .test/main.c -o .test/main\
23
+ "
19
24
# artifact should be removable from host by non-root
20
- rm -fr main
25
+ rm -fr .test
21
26
22
27
# running as non-root and forcing downloading ports
23
28
docker run --rm -u 1000:1000 --net=host emscripten/emsdk:${version} embuilder build zlib
24
29
25
30
# compilation without entrypoint
26
- docker run --rm -e /bin/bash -v `pwd`:/src -w /src emscripten/emsdk:${version} emcc -c main.c -o main
31
+ docker run --rm -e /bin/bash -v `pwd`:/src -w /src emscripten/emsdk:${version} \
32
+ bash -c "\
33
+ mkdir -p .test \
34
+ && echo 'int main() { return 0; }' > .test/main.c \
35
+ && emcc -c .test/main.c -o .test/main\
36
+ "
37
+
27
38
# artifact should be removable from host by non-root
28
- rm -fr main
39
+ rm -fr .test
29
40
30
41
push : .TEST
31
42
docker push emscripten/emsdk:${version}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments