2018-07-05 06:21:47 -07:00
|
|
|
# For travis
|
|
|
|
|
FROM buildpack-deps:xenial
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8
|
|
|
|
|
RUN mkdir -p /root/emsdk/
|
|
|
|
|
COPY . /root/emsdk/
|
|
|
|
|
|
|
|
|
|
RUN cd /root/ \
|
2018-12-20 09:58:37 -08:00
|
|
|
&& echo "int main() {}" > hello_world.cpp \
|
2018-07-05 06:21:47 -07:00
|
|
|
&& apt-get update \
|
2019-05-23 11:01:49 -07:00
|
|
|
&& apt-get install -y python python3 cmake build-essential openjdk-9-jre-headless \
|
2019-01-08 13:46:53 -08:00
|
|
|
&& /root/emsdk/emsdk update-tags \
|
|
|
|
|
&& echo "test latest" \
|
2018-07-05 06:21:47 -07:00
|
|
|
&& /root/emsdk/emsdk install latest \
|
|
|
|
|
&& /root/emsdk/emsdk activate latest \
|
|
|
|
|
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
2018-12-20 09:58:37 -08:00
|
|
|
&& emcc hello_world.cpp \
|
2019-01-08 13:46:53 -08:00
|
|
|
&& echo "test upstream (waterfall)" \
|
2018-12-20 09:58:37 -08:00
|
|
|
&& /root/emsdk/emsdk install latest-upstream \
|
|
|
|
|
&& /root/emsdk/emsdk activate latest-upstream \
|
|
|
|
|
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
2019-05-22 17:23:04 -07:00
|
|
|
&& emcc hello_world.cpp \
|
2019-01-18 16:29:08 -08:00
|
|
|
&& python -c "import os ; assert open(os.path.expanduser('~/.emscripten')).read().count('LLVM_ROOT') == 1" \
|
|
|
|
|
&& python -c "import os ; assert 'upstream' in open(os.path.expanduser('~/.emscripten')).read()" \
|
2019-01-08 13:46:53 -08:00
|
|
|
&& echo "test fastcomp (waterfall)" \
|
|
|
|
|
&& /root/emsdk/emsdk install latest-fastcomp \
|
|
|
|
|
&& /root/emsdk/emsdk activate latest-fastcomp \
|
|
|
|
|
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
|
|
|
|
&& emcc hello_world.cpp \
|
2019-01-09 09:04:03 -08:00
|
|
|
&& emcc hello_world.cpp -s WASM=0 \
|
2019-05-22 17:23:04 -07:00
|
|
|
&& emcc --clear-cache \
|
|
|
|
|
&& echo "test latest-releases-upstream" \
|
2019-05-23 11:01:49 -07:00
|
|
|
&& python2 /root/emsdk/emsdk install latest-releases-upstream \
|
2019-05-22 17:23:04 -07:00
|
|
|
&& /root/emsdk/emsdk activate latest-releases-upstream \
|
|
|
|
|
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
|
|
|
|
&& emcc hello_world.cpp \
|
|
|
|
|
&& echo "test latest-releases-fastcomp" \
|
2019-05-23 11:01:49 -07:00
|
|
|
&& python3 /root/emsdk/emsdk install latest-releases-fastcomp \
|
2019-05-22 17:23:04 -07:00
|
|
|
&& /root/emsdk/emsdk activate latest-releases-fastcomp \
|
|
|
|
|
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
|
|
|
|
&& emcc hello_world.cpp \
|
2019-01-09 09:04:03 -08:00
|
|
|
&& echo "test binaryen source build" \
|
|
|
|
|
&& /root/emsdk/emsdk install --build=Release binaryen-master-64bit
|