Fix emsdk on python3 - the values() of a dict is a view there, not a list (#241)
Also add both python2 and 3 testing on CI here. Fixes #240.
This commit is contained in:
@@ -8,7 +8,7 @@ COPY . /root/emsdk/
|
||||
RUN cd /root/ \
|
||||
&& echo "int main() {}" > hello_world.cpp \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y python cmake build-essential openjdk-9-jre-headless \
|
||||
&& apt-get install -y python python3 cmake build-essential openjdk-9-jre-headless \
|
||||
&& /root/emsdk/emsdk update-tags \
|
||||
&& echo "test latest" \
|
||||
&& /root/emsdk/emsdk install latest \
|
||||
@@ -30,12 +30,12 @@ RUN cd /root/ \
|
||||
&& emcc hello_world.cpp -s WASM=0 \
|
||||
&& emcc --clear-cache \
|
||||
&& echo "test latest-releases-upstream" \
|
||||
&& /root/emsdk/emsdk install latest-releases-upstream \
|
||||
&& python2 /root/emsdk/emsdk install latest-releases-upstream \
|
||||
&& /root/emsdk/emsdk activate latest-releases-upstream \
|
||||
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
||||
&& emcc hello_world.cpp \
|
||||
&& echo "test latest-releases-fastcomp" \
|
||||
&& /root/emsdk/emsdk install latest-releases-fastcomp \
|
||||
&& python3 /root/emsdk/emsdk install latest-releases-fastcomp \
|
||||
&& /root/emsdk/emsdk activate latest-releases-fastcomp \
|
||||
&& source /root/emsdk/emsdk_env.sh --build=Release \
|
||||
&& emcc hello_world.cpp \
|
||||
|
||||
Reference in New Issue
Block a user