Browse Source

Docker image, workflow, and eslint trivia

* Update Node.js in Docker image to 16.x.

* Include duk-g++ in CI.

* Perf test .eslint files.
pull/2484/head
Sami Vaarala 3 years ago
parent
commit
6a4b8dd53a
  1. 1
      .github/workflows/build-workflow.yaml
  2. 6
      README.md
  3. 2
      docker/duktape-base-ubuntu-18.04-x64/Dockerfile
  4. 2
      docker/duktape-base-ubuntu-20.04-arm64/Dockerfile
  5. 2
      docker/duktape-base-ubuntu-20.04-x64/Dockerfile
  6. 1
      tests/perf/.eslintignore
  7. 27
      tests/perf/.eslintrc.yml

1
.github/workflows/build-workflow.yaml

@ -18,6 +18,7 @@ jobs:
run: |
build/duk -e "print(Duktape.env); print('Hello world!');"
build/duk dist-files/mandel.js
build/duk-g++ dist-files/mandel.js
build_duk_macos:
name: Duk macOS 10.15
runs-on: macos-10.15

6
README.md

@ -110,19 +110,19 @@ If you intend to change Duktape internals and want to rebuild the source
distributable in Linux, macOS, or Windows:
# Linux; can often install from packages or using 'pip'
# Install Node.js >= 14.x
# Install Node.js >= 16.x
$ sudo apt-get install python python-yaml
$ python util/dist.py
# macOS
# Install Python 2.7.x
# Install Node.js >= 14.x
# Install Node.js >= 16.x
$ pip install PyYAML
$ python util/dist.py
# Windows
; Install Python 2.7.x from python.org, and add it to PATH
; Install Node.js >= 14.x
; Install Node.js >= 16.x
> pip install PyYAML
> python util\dist.py

2
docker/duktape-base-ubuntu-18.04-x64/Dockerfile

@ -18,7 +18,7 @@ RUN echo "=== Timezone setup ===" && \
# Duktape, the duktape.org website, run tests, etc.
RUN echo "=== Node.js and package install ===" && \
apt-get update && apt-get install -qqy curl && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -qqy \

2
docker/duktape-base-ubuntu-20.04-arm64/Dockerfile

@ -18,7 +18,7 @@ RUN echo "=== Timezone setup ===" && \
# Duktape, the duktape.org website, run tests, etc.
RUN echo "=== Node.js and package install ===" && \
apt-get update && apt-get install -qqy curl && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get update && \
apt-get install -qqy \
build-essential llvm valgrind strace libc6-dbg \

2
docker/duktape-base-ubuntu-20.04-x64/Dockerfile

@ -18,7 +18,7 @@ RUN echo "=== Timezone setup ===" && \
# Duktape, the duktape.org website, run tests, etc.
RUN echo "=== Node.js and package install ===" && \
apt-get update && apt-get install -qqy curl && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -qqy \

1
tests/perf/.eslintignore

@ -0,0 +1 @@
/node_modules/

27
tests/perf/.eslintrc.yml

@ -0,0 +1,27 @@
env:
browser: true
commonjs: true
es6: true
extends: 'eslint:recommended'
globals:
Atomics: readonly
SharedArrayBuffer: readonly
process: readonly
__dirname: readonly
Buffer: readonly
CBOR: readonly
print: writable
Duktape: readonly
parserOptions:
ecmaVersion: 2018
rules:
strict: off
no-self-assign: off
no-unused-vars: off
no-empty: off
no-constant-condition: off
no-unreachable: off
no-tabs: error
no-control-regex: off
no-trailing-spaces: error
no-warning-comments: [ 1, { "terms": ["todo", "fixme", "xxx"], "location": "anywhere" } ]
Loading…
Cancel
Save