Skip to content

Commit a0079f2

Browse files
committed
Deploying to gh-pages from @ 6e7ec33 🚀
1 parent fd51a19 commit a0079f2

File tree

100 files changed

+497396
-928072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+497396
-928072
lines changed
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
version: 2.1
2+
3+
orbs:
4+
win: circleci/[email protected]
5+
6+
executors:
7+
bionic:
8+
docker:
9+
- image: buildpack-deps:bionic
10+
11+
jobs:
12+
flake8:
13+
executor: bionic
14+
steps:
15+
- checkout
16+
- run:
17+
name: install pip
18+
command: |
19+
apt-get update -q
20+
apt-get install -q -y python-pip python3-pip
21+
- run: python2 -m pip install --upgrade pip
22+
- run: python3 -m pip install --upgrade pip
23+
- run: python2 -m pip install flake8==3.7.8
24+
- run: python3 -m pip install flake8==3.7.8
25+
- run: python2 -m flake8 --show-source --statistics
26+
- run: python3 -m flake8 --show-source --statistics
27+
test-linux:
28+
executor: bionic
29+
environment:
30+
EMSDK_NOTTY: "1"
31+
# I don't know why circleci VMs pretent to have 36 cores but its a lie.
32+
EMSDK_NUM_CORES: "4"
33+
steps:
34+
- checkout
35+
- run:
36+
name: Install debian packages
37+
command: apt-get update -q && apt-get install -q -y cmake build-essential openjdk-8-jre-headless ksh zsh
38+
- run: scripts/test.sh
39+
- run: scripts/test_source_env.sh
40+
- run:
41+
name: test.py
42+
command: |
43+
source emsdk_env.sh
44+
scripts/test.py
45+
test-mac:
46+
macos:
47+
xcode: "9.0"
48+
environment:
49+
EMSDK_NOTTY: "1"
50+
# Without this, any `brew installl` command will result in self-update of
51+
# brew itself which takes more than 4 minutes.
52+
HOMEBREW_NO_AUTO_UPDATE: "1"
53+
steps:
54+
- checkout
55+
- run:
56+
name: Install cmake
57+
command: brew install cmake
58+
- run: scripts/test.sh
59+
- run:
60+
name: test.py
61+
command: |
62+
source emsdk_env.sh
63+
scripts/test.py
64+
test-windows:
65+
executor:
66+
name: win/vs2019
67+
shell: bash.exe
68+
environment:
69+
# We need python installed before we can test anytyhing.
70+
# There seems to be undocument copy of python installed here. Hopefully
71+
# if this disappears there will be another way of getting a re-installed
72+
# version.
73+
PYTHON_BIN: "C:\\Python27amd64"
74+
PYTHONUNBUFFERED: "1"
75+
EMSDK_NOTTY: "1"
76+
steps:
77+
- checkout
78+
- run:
79+
name: Add python to bash path
80+
command: echo "export PATH=\"$PATH:/c/python27amd64/\"" >> $BASH_ENV
81+
- run:
82+
name: Install latest
83+
shell: cmd.exe
84+
command: scripts\test.bat
85+
- run:
86+
name: test.py
87+
command: |
88+
source emsdk_env.sh
89+
python scripts/test.py
90+
- run:
91+
name: --permanent test
92+
shell: powershell.exe
93+
command: |
94+
scripts/test_permanent.ps1
95+
96+
build-docker-image:
97+
executor: bionic
98+
steps:
99+
- checkout
100+
- run:
101+
name: install docker
102+
command: apt-get update -q && apt-get install -q -y docker.io
103+
- setup_remote_docker
104+
# Build and test the tip-of-tree build of EMSDK
105+
- run:
106+
name: build
107+
command: make -C ./docker version=tot build
108+
- run:
109+
name: test
110+
command: make -C ./docker version=tot test
111+
112+
publish-docker-image:
113+
executor: bionic
114+
steps:
115+
- checkout
116+
- run:
117+
name: install docker
118+
command: apt-get update -q && apt-get install -q -y docker.io
119+
- setup_remote_docker
120+
- run:
121+
name: build
122+
command: make -C ./docker version=${CIRCLE_TAG} build
123+
- run:
124+
name: test
125+
command: make -C ./docker version=${CIRCLE_TAG} test
126+
- run:
127+
name: push image
128+
command: |
129+
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
130+
make -C ./docker version=${CIRCLE_TAG} alias=latest push
131+
132+
test-bazel:
133+
executor: bionic
134+
steps:
135+
- checkout
136+
- run: apt-get install -q -y curl gnupg
137+
- run: curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
138+
- run: mv bazel.gpg /etc/apt/trusted.gpg.d/
139+
- run: echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
140+
- run:
141+
name: install pip
142+
command: |
143+
apt-get update -q
144+
apt-get install -q -y python3-pip
145+
- run: pip3 install absl-py
146+
- run:
147+
name: install bazel
148+
command: |
149+
apt-get install -q -y bazel
150+
- run: scripts/test_bazel.sh
151+
152+
workflows:
153+
flake8:
154+
jobs:
155+
- flake8
156+
test-linux:
157+
jobs:
158+
- test-linux
159+
test-mac:
160+
jobs:
161+
- test-mac
162+
test-windows:
163+
jobs:
164+
- test-windows
165+
build-docker-image:
166+
jobs:
167+
- build-docker-image
168+
- publish-docker-image:
169+
filters:
170+
branches:
171+
ignore: /.*/
172+
tags:
173+
only: /.*/
174+
test-bazel:
175+
jobs:
176+
- test-bazel
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Ignore all subdirectories
2+
*/*
3+
4+
# Allow to run the test script inside the Docker container
5+
!/docker/test_dockerimage.sh
6+
7+
# Ignore unnecessary files inside top-level directory
8+
*.bat
9+
*.csh
10+
*.fish
11+
*.ps1
12+
*.pyc
13+
.emscripten
14+
.emscripten.old
15+
.emscripten_cache
16+
.emscripten_cache__last_clear
17+
.emscripten_sanity
18+
.emscripten_sanity_wasm
19+
.flake8
20+
emscripten-releases-tot.txt
21+
legacy-*-tags.txt
22+
README.md
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[flake8]
2+
ignore =
3+
E111, # Indentation is not a multiple of four
4+
E114, # Indentation is not a multiple of four (comment)
5+
E501, # Line too long
6+
E121, # Continuation line under-indented for hanging indent
7+
E722 # bare excepts
8+
exclude =
9+
./llvm
10+
./gnu
11+
./upstream
12+
./fastcomp
13+
./fastcomp-clang
14+
./releases
15+
./clang
16+
./emscripten
17+
./binaryen
18+
./git
19+
./node
20+
./python
21+
./temp
22+
./zips
23+
./crunch
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
*.pyc
2+
__pycache__
3+
4+
# Support for --embedded configs
5+
/.emscripten
6+
/.emscripten.old
7+
/.emscripten_cache
8+
/.emscripten_cache__last_clear
9+
/.emscripten_sanity
10+
/.emscripten_sanity_wasm
11+
12+
# Tags files that get generated at runtime
13+
/emscripten-releases-tot.txt
14+
15+
# File that get download/extracted by emsdk itself
16+
/gnu
17+
/upstream
18+
/fastcomp
19+
/fastcomp-clang/
20+
/llvm
21+
/releases
22+
/clang
23+
/emscripten
24+
/git
25+
/node
26+
/python
27+
/temp
28+
/zips
29+
/crunch
30+
/java
31+
/mingw
32+
/spidermonkey
33+
/binaryen
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2018 Emscripten authors (see AUTHORS in Emscripten)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.
20+
21+
----------------------------------------------------------------------------
22+
23+
This is the MIT/Expat Licence. For more information see:
24+
25+
1. http://www.opensource.org/licenses/mit-license.php
26+
27+
2. http://en.wikipedia.org/wiki/MIT_License

0 commit comments

Comments
 (0)