File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-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,25 @@ 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
+ ls -la
18
+ # compilation as non-root
19
+ docker run --rm -u 1000:1000 -v ` pwd` :/src -w /src emscripten/emsdk:${version} \
20
+ bash -c " echo 'int main() { return 0; }' > .test/main.c && emcc -c .test/main.c -o .test/main"
19
21
# artifact should be removable from host by non-root
20
- rm -fr main
22
+ rm -fr .test
21
23
22
24
# running as non-root and forcing downloading ports
23
25
docker run --rm -u 1000:1000 --net=host emscripten/emsdk:${version} embuilder build zlib
24
26
25
27
# compilation without entrypoint
26
- docker run --rm -e /bin/bash -v `pwd`:/src -w /src emscripten/emsdk:${version} emcc -c main.c -o main
28
+ docker run --rm -e /bin/bash -v `pwd`:/src -w /src emscripten/emsdk:${version} \
29
+ bash -c "echo 'int main() { return 0; }' > .test/main.c && emcc -c .test/main.c -o .test/main"
30
+
27
31
# artifact should be removable from host by non-root
28
- rm -fr main
32
+ rm -fr .test
29
33
30
34
push : .TEST
31
35
docker push emscripten/emsdk:${version}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments