Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
880be59
Add circleci config with mac, windows and linux testing (#338)
sbc100 Aug 29, 2019
40495c0
Fix a bunch of flake8 warnings (#239)
sbc100 Aug 29, 2019
3418c69
Be more precise about which tests are disabled on macOS due to timest…
sbc100 Aug 29, 2019
62c8a09
Add status badge (#343)
sbc100 Aug 29, 2019
8a2e65a
1.38.43 (#346)
kripken Aug 30, 2019
8f6fc50
Re-enable tests on mac after emscripten roll (#347)
sbc100 Aug 30, 2019
2dd05dc
reland: Update default node version to 10.16.3 (#341)
sbc100 Aug 30, 2019
efc6487
Update node version to 12.9.1 (#348)
sbc100 Sep 3, 2019
845f7e8
1.38.44 (#351)
kripken Sep 11, 2019
26b160a
Add 1.38.45 (#352)
sbc100 Sep 12, 2019
252410a
Handle missing downloads gracefully (#353)
sbc100 Sep 13, 2019
a6c8e25
Remove some mozilla-games remnants (#360)
kripken Sep 23, 2019
41adfea
1.38.46 (#361)
kripken Sep 25, 2019
9ed2070
1.38.47 (#364)
kripken Oct 2, 2019
29ad7fa
Add a warning on old Python SSL/TLS certificates (#354)
Hillsie Oct 7, 2019
6ab7f58
Cleanup emsdk.py (#362)
sbc100 Oct 8, 2019
cf01b11
Fix for default NODE_JS in config file (#369)
sbc100 Oct 9, 2019
27d6233
Add support for constructing a t?csh environment (#370)
nickie Oct 10, 2019
7f9af7b
1.38.48 (#371)
kripken Oct 11, 2019
c564225
Added dockerfiles form trzeci/emscripten-docker (#368)
trzecieu Oct 11, 2019
e375d24
Strip the tot value. (#375)
kripken Oct 17, 2019
81de8c5
1.39.0 (#377)
kripken Oct 18, 2019
6ac51b4
Show a clear error when a tool is only 64-bit but the platform is 32.…
kripken Oct 18, 2019
e047fe4
Add python and java to 'releases-upstream' for windows (#376)
sbc100 Oct 18, 2019
ae5044e
Switch default backend from 'fastcomp' to 'upstream' (#373)
sbc100 Oct 21, 2019
76de4a0
1.39.1 (#382)
kripken Oct 30, 2019
1b1f08f
Use quotes, so we handle python paths with spaces. Fixes #381 (#383)
kripken Oct 30, 2019
04d13b9
1.39.2 (#386)
kripken Nov 7, 2019
a5082b2
1.39.3 (#388)
kripken Nov 14, 2019
5b75fb3
Remove unused EMSDK_DEV option. (#393)
juj Nov 25, 2019
12f1824
Remove Tools and SDKs that do no longer work after migration from Moz…
juj Dec 3, 2019
c10e3e8
1.39.4 (#397)
kripken Dec 3, 2019
2c1cb5a
Update the latest release tag to 1.39.4 (#398)
haberbyte Dec 4, 2019
cf90c72
Do not attempt to reinstall python if it already exists (#394)
juj Dec 5, 2019
1e42b44
Update README (#390)
sbc100 Dec 10, 2019
3c548d3
Clobber target directory before extracting SDK tools (#410)
sbc100 Dec 11, 2019
9c60ff9
Add python generated files to .gitignore (#409)
sbc100 Dec 11, 2019
322c7aa
Don't force re-download of all archives during install (#411)
sbc100 Dec 11, 2019
e10be71
Rename old fastcomp-based tools to a specific fastcomp- prefixed name…
juj Dec 12, 2019
2546d5a
Build wasm master (#401)
juj Dec 16, 2019
a0d34f6
Add upstream-incoming SDK targets for macOS and Linux as well (#413)
juj Dec 17, 2019
f72c6e9
Add support for building with Visual Studio 2019 (#415)
juj Dec 19, 2019
b7cde08
Remove old workaround that was there to restore %SystemRoot% in PATH …
juj Dec 19, 2019
3690139
1.39.5 (#417)
kripken Dec 20, 2019
98ad15a
Fix issue with Windows paths under MinGW versions of Python (#419)
logiconcepts819 Jan 7, 2020
d30ba16
Add npm install step as post-build to Emscripten (#404)
juj Jan 10, 2020
3631f0a
Remove use of incoming branches (#423)
sbc100 Jan 14, 2020
6bfbe2a
1.39.6 (#424)
kripken Jan 15, 2020
997b0a1
Pass `--no-audit` to `npm install` (#426)
sbc100 Jan 21, 2020
3532fd3
Extract `install_sdk` and `install_tool` from `install`. NFC (#432)
sbc100 Jan 28, 2020
ba53d20
Use `npm ci` over npm install (#433)
sbc100 Jan 28, 2020
deaa7e4
Hide npm output by default (#431)
sbc100 Jan 29, 2020
ff44c97
Re-add binaryen dep to upstream-master SDK builds (#435)
bvibber Jan 30, 2020
801bef7
1.39.7 (#436)
kripken Feb 3, 2020
573278b
Switch to python3 when installing python on windows installs. (#349)
sbc100 Feb 5, 2020
50df5a2
Fix ZIP extraction on Windows. (#438)
diegocr Feb 12, 2020
5892e95
Fix Windows lookup for Python 3 (#439)
juj Feb 13, 2020
1458145
1.39.8 (#440)
kripken Feb 14, 2020
3264996
Fix some grammar errors in README (#449)
Mar 3, 2020
8a35734
Fix precompiled library support + testing (#444)
kripken Mar 5, 2020
86a4766
1.39.9 (#450)
kripken Mar 6, 2020
1bd7d54
1.39.10 (#452)
kripken Mar 9, 2020
7e689a5
1.39.11 (#455)
kripken Mar 20, 2020
044f25f
Use an actual hello world program to test in test.py (#456)
sbc100 Mar 20, 2020
a490cd1
Add `llvm` to git ignore (#457)
sbc100 Mar 23, 2020
009ab2c
Avoid re-downloading files that are already downloaded (#460)
dnfield Apr 1, 2020
4dce416
Docker fixes and updates (#461)
ngaro Apr 6, 2020
a952a6f
Fix expected test output (#464)
kripken Apr 9, 2020
c523a65
1.39.12 (#465)
kripken Apr 9, 2020
b1f867a
Re-enable building master from source for linux 32-bit (#471)
sbc100 Apr 16, 2020
1e62b13
Remove reference of old clang binary. (#469)
sbc100 Apr 16, 2020
6dd96f1
1.39.13 (#474)
kripken Apr 17, 2020
7016bd6
Drop Visual Studio 2015 build support and older (#482)
juj Apr 28, 2020
eeecdd0
1.39.14 (#484)
kripken May 1, 2020
64d54b8
Add pywin32 to windows python installation (#487)
sbc100 May 4, 2020
e381caa
Move test scripts into scripts directory (#485)
sbc100 May 4, 2020
62914e7
Add script for updating node and python binaries in google storage (#…
sbc100 May 4, 2020
fd269ba
Add more generated files to .gitconfig (#490)
sbc100 May 4, 2020
15ac4ff
1.39.15 (#491)
kripken May 6, 2020
99320fc
Support python3 in test.py (#494)
sbc100 May 7, 2020
a8263f3
Allow EMCC_BASH to force bash during construct_env (#493)
sbc100 May 7, 2020
5e996c6
test.py should require that the SDK be activated (#492)
sbc100 May 7, 2020
683cead
Add CACHE setting to config file (for embedded users) (#495)
sbc100 May 7, 2020
88ae400
Make installation errors fatal (#437)
sbc100 May 7, 2020
f5e21de
Fix for parsing existing config in --embedded mode after #495 (#498)
sbc100 May 8, 2020
d75a9a8
Add some docs for building from source and binary. fixes #10063 (#420)
kripken May 12, 2020
4265173
Remove legacy builds (#500)
kripken May 13, 2020
7e22ab8
Refactor such that Tool.activated_config returns a map. NFC (#502)
sbc100 May 13, 2020
14c0a9e
Update default emscripten cache directory (#501)
sbc100 May 13, 2020
85cf370
1.39.16 (#503)
sbc100 May 15, 2020
5613488
Properly report what is installed in "emsdk list" (#505)
kripken May 21, 2020
855c51d
Improve behaviour regarding "help" (#509)
orestisfl May 28, 2020
858b176
Use embedded configuration by default (#472)
sbc100 May 29, 2020
6b0d151
Properly sort versions in "emsdk list" (#508)
orestisfl Jun 1, 2020
ede26f1
Add host network for building image (#514)
trzecieu Jun 4, 2020
d371fb6
1.39.17 (#518)
kripken Jun 5, 2020
24d8848
Set up build-docker-image job build docker image for tags on Circle C…
Squareys Jun 5, 2020
01589e7
Updated tagging schema for docker images (#519)
trzecieu Jun 9, 2020
27b23d4
1.39.18 (#521)
kripken Jun 12, 2020
7241082
Build docker image as part of CI (#527)
sbc100 Jun 22, 2020
d50b1d8
Simplify docker image in several ways (#523)
sbc100 Jun 23, 2020
8dd51b4
Remove unused permanent in construct_env (#525)
sbc100 Jun 24, 2020
38a270f
Minor python cleanups. NFC. (#496)
sbc100 Jun 24, 2020
25416b8
Testing circleci auto-publish of docker image (#531)
sbc100 Jun 24, 2020
8e5b6d8
More circleci testing (sorry)
sbc100 Jun 24, 2020
618fcf3
More circleci testing
sbc100 Jun 24, 2020
dc74092
Revert testing changes
sbc100 Jun 24, 2020
c080151
Update nodejs to v12.18.1 (#529)
dschuff Jun 24, 2020
47c669a
Update node directory in Dockerfile (#532)
sbc100 Jun 24, 2020
eff1d2e
Drop "-upstream" suffix from docker image name (#530)
sbc100 Jun 24, 2020
7f77b61
Add standard workdir for Dockerimage (#534)
trzecieu Jun 26, 2020
92d512f
docs: change message when running emsdk_env.sh (#537)
Jul 2, 2020
819e95c
Cleanup emsdk_env scripts (#539)
sbc100 Jul 6, 2020
4f2daec
Fix running emsdk_env.sh outside of emsdk directory (#541)
sbc100 Jul 7, 2020
833dfdd
1.39.19 (#542)
kripken Jul 7, 2020
d37abed
Avoid writing to file in emsdk_env.csh / emsdk_env.sh (#544)
sbc100 Jul 11, 2020
c494899
Change EMSDK_SET_ENV to output correct filename for powershell. (#546)
Walt280 Jul 11, 2020
9f63f10
Fix fatal exception in "emsdk list" on unsupported platforms (#549)
bvibber Jul 12, 2020
96ba7f6
Remove bash-ism from emsdk_env.sh (#552)
sbc100 Jul 14, 2020
d4383f4
Fix docker build to not depend on emsdk_set_env.sh (#554)
sbc100 Jul 14, 2020
e5f63be
Update location emsdk_set_env.bat in emsdk.bat (#553)
sbc100 Jul 15, 2020
dec8a63
Remove emsdk_set_ene.bat from .gitignore (#550)
sbc100 Jul 15, 2020
3e9f04d
Remove support for non-embedded mode (#510)
sbc100 Jul 20, 2020
9d1b5b6
Cleanup and unify code for removing files. (#557)
sbc100 Jul 20, 2020
b504f0b
Cleanup legacy 'copy_pregenerated_cache' handling. NFC. (#558)
sbc100 Jul 20, 2020
3249417
1.39.20 (#556)
kripken Jul 20, 2020
d8984b2
Rename build_llvm_monorepo to just build_llvm. NFC. (#560)
sbc100 Jul 21, 2020
4aa0280
Use bundled/embedded python3 binary on OSX (#561)
sbc100 Jul 21, 2020
0e5f2d8
Rename osx -> macos (#563)
sbc100 Jul 21, 2020
4d4ae34
Improve activation message (#562)
sbc100 Jul 22, 2020
9b405d3
Add new python version of known versions in emsdk.bat (#565)
sbc100 Jul 22, 2020
56f5a2b
Cleanup emsdk.bat launcher (#566)
sbc100 Jul 22, 2020
b5077e4
Fix sanity file location within Dockerfile (#568)
kleisauke Jul 23, 2020
de08462
Cleanup Dockerfile. NFC. (#569)
kleisauke Jul 25, 2020
6dac5ae
Fail `update-tags` if not tot revision is found (#574)
sbc100 Jul 27, 2020
e3b0841
[powershell] fix emsdk.ps1 assuming emsdk_set_env.ps1 lives in the cu…
aardappel Jul 29, 2020
1dc9fde
1.40.0 (#577)
kripken Jul 30, 2020
147abfe
Make emscripten directory world writable (#578)
sbc100 Jul 31, 2020
e88a3c5
1.40.1 (#579)
kripken Aug 1, 2020
60e3a51
Split out `expand_sdk_name` function. NFC. (#580)
sbc100 Aug 5, 2020
16d4ec5
Disallow fastcomp in tot and 2.0.0+ (#584)
kripken Aug 7, 2020
1e5c650
Log warnings to stderr (#585)
sbc100 Aug 7, 2020
839c108
2.0.0! (#586)
sbc100 Aug 11, 2020
ff8a62a
Pre-bundle requests module with macOS bundles python (#589)
sbc100 Aug 11, 2020
6adb624
Error on trying to get latest-fastcomp (#590)
kripken Aug 11, 2020
721ef8f
2.0.1 (#596)
kripken Aug 21, 2020
c1f0ad9
Fix emsdk_env.sh for multiple shells (#594)
rwtolbert Aug 22, 2020
9c27544
Add stalebot (#601)
sbc100 Aug 25, 2020
f6c9e45
Fix `emsdk activate` breaking configuration file (#602)
reosablo Aug 31, 2020
645d276
Docker improvements (#571)
kleisauke Sep 2, 2020
2e73421
2.0.2 (#604)
kripken Sep 2, 2020
0eb40e1
Make emsdk_env.sh work under set -o nounset (#605)
nhooyr Sep 7, 2020
81dd223
Parse the releases info only once in emsdk.py. (#607)
j-jorge Sep 10, 2020
bfdfd61
Fix sanity file generation in Dockerfile (#610)
sbc100 Sep 10, 2020
e08b17c
Remove copy_pregenerated_cache (#609)
sbc100 Sep 10, 2020
def6e49
2.0.3 (#612)
kripken Sep 11, 2020
5f630de
add a wasm bazel toolchain (#603)
walkingeyerobot Sep 11, 2020
a94f2fe
update bazel workspace for emscripten 2.0.3 (#613)
walkingeyerobot Sep 12, 2020
edc53e7
Add missing python locations to emsdk.ps1 (#615)
aminya Sep 15, 2020
88b4ec6
2.0.4 (#619)
kripken Sep 16, 2020
843c195
Remove unused parameter (#611)
sbc100 Sep 16, 2020
f8e0b49
Clear PYTHONHOME when using bundled python (#600)
sbc100 Sep 17, 2020
42abe55
Remove native optimizer build from emscripten master install (#622)
sbc100 Sep 21, 2020
7e841b5
2.0.5 (#625)
kripken Sep 28, 2020
807e55c
Set user environment variables permanently by using `--permanent` + d…
aminya Sep 30, 2020
8ca8591
Fix ``The system cannot find the drive specified.`` due to ``::`` sty…
kudaba Sep 30, 2020
e899a6f
Fix issue where MSYS2 and MinGW mistaken for Linux (#628)
Oct 1, 2020
aec1e16
2.0.6 (#629)
kripken Oct 2, 2020
47b7f85
Skip installing optional npm deps, but manually install Closure Compi…
curiousdannii Oct 6, 2020
31f5f84
Revert "Skip installing optional npm deps, but manually install Closu…
kripken Oct 6, 2020
53c184e
Avoid pywin32 dependency on Windows (#635)
aminya Oct 7, 2020
107dc62
Skip installing optional npm deps, but manually install Closure Compi…
curiousdannii Oct 9, 2020
4fe6e49
Fix environment variables to be consistently set when using --system …
kudaba Oct 9, 2020
da9419f
2.0.7 (#641)
kripken Oct 13, 2020
10290f2
Update mac circleci environment (#644)
sbc100 Oct 24, 2020
f3e2e43
2.0.8 (#643)
kripken Oct 24, 2020
4a695be
circleci: Add explict version to `setup_remote_docker`. NFC. (#646)
sbc100 Oct 27, 2020
4078013
fix: emsdk swallows/overwrites parts of PATH (#642)
aminya Oct 31, 2020
8f2f5e3
Fix regression where reinstalling tools from git sources would not gi…
juj Nov 8, 2020
372fb50
2.0.9 (#653)
kripken Nov 16, 2020
aa5fedf
Increate download chunk size of 256k (#657)
sbc100 Nov 25, 2020
62fb171
Remove used arg in scripts/test.bat (#659)
sbc100 Dec 1, 2020
ec9c1c4
2.0.10 (#664)
sbc100 Dec 4, 2020
8234fb3
Add git-lfs package to emsdk Docker image (#665)
haraldreingruber Dec 11, 2020
5fd57ff
2.0.11 (#670)
dschuff Dec 17, 2020
4def4da
fix sln parsing form vs2019 (#679)
fzhangtj Jan 5, 2021
5ad9d72
2.0.12 (#680)
sbc100 Jan 9, 2021
6357c6d
Set binaryen's git branch to `main` in manifest. (#684)
Matthew-McRaven Jan 22, 2021
5fd6f03
fix: bazel/emscripten_toolchain/wasm_binary.py command output withou…
levenon Jan 26, 2021
02edc97
Set LLVM's git branch to `main` in manifest. (#693)
Matthew-McRaven Jan 29, 2021
2c086de
Remove redundant testing/downloading (#695)
sbc100 Jan 30, 2021
cfdcf13
Release 2.0.13 and update bazel toolchain (#694)
sbc100 Jan 30, 2021
45cd9df
Fix: wrong clang path in Bazel toolchain (#699) (#700)
Volcomix Feb 7, 2021
ba7fad3
make hello world simd a bit cleaner (#701)
walkingeyerobot Feb 8, 2021
8b32b7d
Cleanup handling of old prebuild SDK tags (#697)
sbc100 Feb 8, 2021
9e96410
Update node version to 14.15.5 (latest TLS release) (#708)
sbc100 Feb 13, 2021
2b720e5
2.0.14 (#710)
sbc100 Feb 14, 2021
57ebbbd
Avoid adding our java or python to the PATH (#706)
sbc100 Feb 15, 2021
ef638b3
Rename llvm-git-master -> llvm-git-main (#718)
sbc100 Feb 18, 2021
63b6cd2
Allow system npm in "emsdk install emscripten" (#723)
truboxl Feb 23, 2021
102e022
Move error reporting when git is not found during update-tags (#728)
sbc100 Feb 26, 2021
f9af08a
Remove unused run_emcc function. NFC. (#713)
sbc100 Feb 26, 2021
a79eadf
Fix crash attempting to install fastcmp SDK by hash (#730)
sbc100 Feb 26, 2021
fcf1bbe
Limit expansion of %releases-tag% for fastcomp (#731)
sbc100 Feb 26, 2021
c1883c7
Cleanup sys.argv handling. NFC. (#734)
sbc100 Feb 26, 2021
f788ca9
Remove unneeded try/catch (#733)
sbc100 Feb 26, 2021
0a84156
Avoid post-install when nothing is installed (#736)
sbc100 Mar 1, 2021
e08c153
Refactor test.py to use python unittest. NFC. (#735)
sbc100 Mar 1, 2021
53eacf4
Allow the install of any emscripten-releases build (#732)
sbc100 Mar 2, 2021
9d00a82
Remove `update-tags` phase (#738)
sbc100 Mar 5, 2021
8915c20
Always print debug info to stderr (#739)
sbc100 Mar 5, 2021
9d639b3
Fix for `construct_env` and `list` with tot build installed (#741)
sbc100 Mar 5, 2021
6e2873c
Feedback from #741. NFC. (#742)
sbc100 Mar 5, 2021
7cba2e0
2.0.15 (#743)
sbc100 Mar 6, 2021
f0ee795
Remove special version check for vs-tool. NFC. (#740)
sbc100 Mar 8, 2021
7d155f8
Move tests to "test" directory. NFC. (#745)
sbc100 Mar 8, 2021
226b548
Rename binaryen-master to binaryen-main (#746)
sbc100 Mar 8, 2021
73183b5
Fix race between `install tot` and `active tot` (#749)
sbc100 Mar 8, 2021
67dc4b4
Switch emscripten branch from master to main (#750)
sbc100 Mar 8, 2021
1fe8067
Missing update from #746 (#751)
sbc100 Mar 9, 2021
d342821
Skip npm step if node_modules already exists (#640)
sbc100 Mar 10, 2021
329423f
Remove "fastcomp-master" SDKs from emsdk_manifest.json (#752)
sbc100 Mar 10, 2021
cf2e337
Base on Ubuntu Focal. (#747)
MarkCallow Mar 11, 2021
9a70fe3
Rename sdk-upstream-master SDK to sdk-upstream-main (#754)
sbc100 Mar 11, 2021
772d397
Fix search of VCTargetsPath for VS2019 build. (#698)
juj Mar 11, 2021
96d7ee1
Fix support for Apple M1 (#753)
juj Mar 12, 2021
1a38787
Remove absl from wasm_binary (#756)
celentes Mar 12, 2021
1ee4a9c
Fix GitHub repo url in emsdk_manifest.json (#757)
akoeplinger Mar 14, 2021
9c65611
Ccache (#711)
juj Mar 15, 2021
0fe3d48
Update to python 3.9.2 on Windows as well. Mark old Python and Node p…
juj Mar 16, 2021
ac98ca3
Rename EMCC_CCACHE to _EMCC_CCACHE. (#762)
juj Mar 17, 2021
848260e
Bazel add html support (#765)
walkingeyerobot Mar 22, 2021
b85548d
List "Release" as the default build option (#770)
truboxl Mar 22, 2021
fdda852
Simplify the notation for installing by hash to just emsdk install HA…
kripken Mar 22, 2021
c1589b5
Use emsdk as external bazel dependency (#766)
celentes Mar 24, 2021
459f7c1
Update bazel readme (#774)
celentes Mar 25, 2021
6162e2e
2.0.16 (#773)
sbc100 Mar 26, 2021
2e7eaf7
Correct README.md about building arguments of docker image. Fixes #74…
trzecieu Mar 28, 2021
f03f1dc
2.0.17 (#786)
sbc100 Apr 11, 2021
bda6a0c
Remove the use of a custom temp directory. That is a bad practice, we…
juj Apr 23, 2021
e32410e
Add create_release.py script (#798)
sbc100 Apr 23, 2021
cee96f8
2.0.18 (#799)
dschuff Apr 24, 2021
4282d5d
Avoid setting `EM_CACHE` unless we really need to (#797)
sbc100 Apr 26, 2021
16ee884
Fix issues with npm install of google-closure-compiler installing all…
juj Apr 26, 2021
3510ab2
Add option --override-repository (#792)
juj Apr 29, 2021
b4c9194
Unset emsdk-related environment variable from inactive tools (#801)
sbc100 Apr 29, 2021
894c25b
Switch to `HEAD.zip` when downloading archive from github. (#806)
sbc100 Apr 29, 2021
05328c4
Add warning to those using `master` branch (#810)
sbc100 May 3, 2021
619a289
Remove explicit closure install step, the first install command does …
juj May 5, 2021
7e3c046
Error on the master branch, and direct people to main. See #805 (#823)
kripken May 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
231 changes: 231 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
version: 2.1

orbs:
win: circleci/windows@1.0.0

executors:
bionic:
docker:
- image: buildpack-deps:bionic

jobs:
flake8:
executor: bionic
steps:
- checkout
- run:
name: install pip
command: |
apt-get update -q
apt-get install -q -y python-pip python3-pip
- run: python2 -m pip install --upgrade pip
- run: python3 -m pip install --upgrade pip
- run: python2 -m pip install flake8==3.7.8
- run: python3 -m pip install flake8==3.7.8
Comment on lines +21 to +24
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a single command to install and upgrade pip and flake8 for both Python versions to improve maintainability:

- run: |
    for py in python2 python3; do
      $py -m pip install --upgrade pip
      $py -m pip install flake8==3.7.8
    done

- run: python2 -m flake8 --show-source --statistics
- run: python3 -m flake8 --show-source --statistics
test-linux:
executor: bionic
environment:
EMSDK_NOTTY: "1"
# I don't know why circleci VMs pretent to have 36 cores but its a lie.
EMSDK_NUM_CORES: "4"
steps:
- checkout
- run:
name: Install debian packages
command: apt-get update -q && apt-get install -q -y cmake build-essential openjdk-8-jre-headless ksh zsh
- run: test/test.sh
- run: test/test_source_env.sh
- run:
name: test.py
command: |
source emsdk_env.sh
test/test.py
test-mac:
macos:
xcode: "12.2.0"
environment:
EMSDK_NOTTY: "1"
# Without this, any `brew installl` command will result in self-update of
# brew itself which takes more than 4 minutes.
HOMEBREW_NO_AUTO_UPDATE: "1"
steps:
- checkout
- run:
name: Install cmake
command: brew install cmake
- run: test/test.sh
- run:
name: test.py
command: |
source emsdk_env.sh
test/test.py
test-windows:
executor:
name: win/vs2019
shell: bash.exe
environment:
# We need python installed before we can test anytyhing.
# There seems to be undocument copy of python installed here. Hopefully
# if this disappears there will be another way of getting a re-installed
# version.
PYTHON_BIN: "C:\\Python27amd64"
PYTHONUNBUFFERED: "1"
EMSDK_NOTTY: "1"
steps:
- checkout
- run:
name: Add python to bash path
command: echo "export PATH=\"$PATH:/c/python27amd64/\"" >> $BASH_ENV
- run:
name: Install latest
shell: cmd.exe
command: test\test.bat
- run:
name: test.py
command: |
source emsdk_env.sh
python test/test.py

- run:
name: flagless (process/shell) test
shell: powershell.exe
command: |
test/test_activation.ps1

- run:
name: --permanent test
shell: powershell.exe
command: |
$env:PERMANENT_FLAG="--permanent"
test/test_activation.ps1

- run:
name: --system test
shell: powershell.exe
command: |
$env:SYSTEM_FLAG="--system"
test/test_activation.ps1

- run:
name: Process/Shell PATH preservation test
shell: powershell.exe
command: |
test/test_path_preservation.ps1

- run:
name: User PATH preservation test
shell: powershell.exe
command: |
$env:PERMANENT_FLAG="--permanent"
test/test_path_preservation.ps1

- run:
name: System PATH preservation test
shell: powershell.exe
command: |
$env:SYSTEM_FLAG="--system"
test/test_path_preservation.ps1

build-docker-image:
executor: bionic
steps:
- checkout
- run:
name: install docker
command: apt-get update -q && apt-get install -q -y docker.io
- setup_remote_docker:
version: 19.03.13
# Build and test the tip-of-tree build of EMSDK
- run:
name: build
command: make -C ./docker version=tot build
- run:
name: test
command: make -C ./docker version=tot test

publish-docker-image:
executor: bionic
steps:
- checkout
- run:
name: install docker
command: apt-get update -q && apt-get install -q -y docker.io
- setup_remote_docker:
version: 19.03.13
- run:
name: build
command: make -C ./docker version=${CIRCLE_TAG} build
- run:
name: test
command: make -C ./docker version=${CIRCLE_TAG} test
- run:
name: push image
command: |
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
make -C ./docker version=${CIRCLE_TAG} alias=latest push

test-bazel-linux:
executor: bionic
steps:
- checkout
- run: apt-get install -q -y curl gnupg
- run: curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
- run: mv bazel.gpg /etc/apt/trusted.gpg.d/
- run: echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
- run:
name: install pip
command: |
apt-get update -q
apt-get install -q -y python3-pip
- run: pip3 install absl-py
- run:
name: install bazel
command: |
apt-get install -q -y bazel
- run: test/test_bazel.sh

test-bazel-mac:
macos:
xcode: "12.2.0"
environment:
EMSDK_NOTTY: "1"
HOMEBREW_NO_AUTO_UPDATE: "1"
steps:
- checkout
- run: brew install grep
- run:
name: install bazel
command: |
brew install bazel
- run: test/test_bazel_mac.sh

workflows:
flake8:
jobs:
- flake8
test-linux:
jobs:
- test-linux
test-mac:
jobs:
- test-mac
test-windows:
jobs:
- test-windows
build-docker-image:
jobs:
- build-docker-image
- publish-docker-image:
filters:
branches:
ignore: /.*/
tags:
only: /.*/
test-bazel-linux:
jobs:
- test-bazel-linux
test-bazel-mac:
jobs:
- test-bazel-mac
21 changes: 21 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Ignore all subdirectories
*/*

# Allow to run the test script inside the Docker container
!/docker/test_dockerimage.sh

# Ignore unnecessary files inside top-level directory
*.bat
*.csh
*.fish
*.ps1
*.pyc
.emscripten
.emscripten.old
.emscripten_cache
.emscripten_cache__last_clear
.emscripten_sanity
.emscripten_sanity_wasm
.flake8
emscripten-releases-tot.txt
README.md
24 changes: 22 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
[flake8]
ignore = E111,E114,E501,E261,E266,E121,E402,E241,E701
filename = emsdk
ignore =
Comment on lines 1 to +2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of E261, E266, E402, E241, and E701 from the ignore list should be reviewed to ensure the codebase adheres to these flake8 rules, which can improve code quality.

E111, # Indentation is not a multiple of four
E114, # Indentation is not a multiple of four (comment)
E501, # Line too long
E121, # Continuation line under-indented for hanging indent
E722 # bare excepts
exclude =
./llvm
./gnu
./upstream
./fastcomp
./fastcomp-clang
./releases
./clang
./emscripten
./binaryen
./git
./node
./python
./temp
./zips
./crunch
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 365
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 30
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because there has been no
activity in the past year. It will be closed automatically if no further
activity occurs in the next 30 days. Feel free to re-open at any time if this
issue is still relevant.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
60 changes: 33 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
clang
emscripten
emsdk_set_env.bat
emsdk_set_env.sh
git
node
python
temp
zips
crunch
java
mingw
spidermonkey
binaryen
.emscripten
.emscripten_cache
.emscripten_cache__last_clear
.emscripten_sanity
.tmp
tmp
gnu
emscripten-nightlies.txt
llvm-nightlies-32bit.txt
llvm-nightlies-64bit.txt
llvm-tags-32bit.txt
llvm-tags-64bit.txt
upstream
*.pyc
__pycache__

# Support for --embedded configs
/.emscripten
/.emscripten.old
/.emscripten_cache
/.emscripten_cache__last_clear
/.emscripten_sanity
/.emscripten_sanity_wasm

# Tags files that get generated at runtime
/emscripten-releases-tot.txt

# File that get download/extracted by emsdk itself
/gnu
/upstream
/fastcomp
/fastcomp-clang/
/llvm
/releases
/clang
/emscripten
/git
/node
/python
/temp
/zips
/crunch
/java
/mingw
/spidermonkey
/binaryen
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Loading