Skip to content

Commit b0fabd4

Browse files
committed
Update after #530
1 parent 377cc5b commit b0fabd4

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ jobs:
9191
python scripts/test.py
9292
9393
build-docker-image:
94-
executor: bionic
94+
machine: true # required for testing files permissions
9595
steps:
9696
- checkout
97-
- run:
98-
name: install docker
99-
command: apt-get update -q && apt-get install -q -y docker.io
100-
- setup_remote_docker
10197
# build and test the latest released version of EMSDK
10298
- run:
10399
name: build

docker/Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env make
22

33
# 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
55
version =
66
alias =
77

@@ -11,21 +11,25 @@ ifndef version
1111
endif
1212

1313
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} .
1515

1616
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"
1921
# artifact should be removable from host by non-root
20-
rm -fr main
22+
rm -fr .test
2123

2224
# running as non-root and forcing downloading ports
2325
docker run --rm -u 1000:1000 --net=host emscripten/emsdk:${version} embuilder build zlib
2426

2527
# 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+
2731
# artifact should be removable from host by non-root
28-
rm -fr main
32+
rm -fr .test
2933

3034
push: .TEST
3135
docker push emscripten/emsdk:${version}

docker/main.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)