Skip to content

Use emsdk on travis for CI #5087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from
Closed
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sudo: required

services:
- docker

before_install:
- docker pull ubuntu:16.04

script:
- docker build .

notifications:
email: false

14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# For travis
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y python wget \
&& wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz \
&& tar -xvf emsdk-portable.tar.gz \
&& cd emsdk-portable \
&& ./emsdk update \
&& ./emsdk install latest \
&& ./emsdk activate latest \
&& cd .. \
&&./emcc \
&& python tests/runner.py test_hello_world

2 changes: 1 addition & 1 deletion tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def get_llc_targets():
pre, targets = llc_version_info.split('Registered Targets:')
return targets
except Exception, e:
return '(no targets could be identified: ' + str(e) + ')'
return '(no targets could be identified: ' + llc_version_info + ' : ' + str(e) + ')'

def has_asm_js_target(targets):
return 'js' in targets and 'JavaScript (asm.js, emscripten) backend' in targets
Expand Down