Skip to content

Commit 1a20c84

Browse files
committed
travis
1 parent ddb06bd commit 1a20c84

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sudo: required
2+
3+
language: python
4+
5+
services:
6+
- docker
7+
8+
before_install:
9+
- docker pull ubuntu:16.04
10+
11+
script:
12+
- docker build .
13+
14+
notifications:
15+
email: false
16+

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# For travis
2+
FROM ubuntu:16.04
3+
SHELL ["/bin/bash", "-c"]
4+
5+
COPY . /
6+
7+
RUN apt-get update \
8+
&& apt-get install -y python wget git \
9+
&& wget https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz \
10+
&& tar -xf emsdk-portable.tar.gz \
11+
&& cd emsdk-portable \
12+
&& ./emsdk update \
13+
&& ./emsdk install latest \
14+
&& ./emsdk activate latest \
15+
&& source ./emsdk_env.sh \
16+
&& cd .. \
17+
&& ./emcc --version \
18+
&& python tests/runner.py test_hello_world

0 commit comments

Comments
 (0)