2019-03-21 02:04:41 +01:00
|
|
|
# Javascript Node CircleCI 2.0 configuration file
|
|
|
|
#
|
|
|
|
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
|
|
|
#
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
references:
|
|
|
|
js_deps_cache_key: &js_deps_cache_key
|
|
|
|
v1-dependency-js-deps-{{ checksum "package.json" }}
|
|
|
|
js_deps_backup_cache_key: &js_deps_backup_cache_key
|
|
|
|
v1-dependency-js-deps
|
|
|
|
node_latest: &node_latest
|
2020-08-15 18:15:18 +02:00
|
|
|
circleci/node:lts
|
2019-03-21 02:04:41 +01:00
|
|
|
|
|
|
|
restore_cache: &restore_cache
|
|
|
|
restore_cache:
|
|
|
|
keys:
|
|
|
|
- *js_deps_cache_key
|
|
|
|
- *js_deps_backup_cache_key
|
|
|
|
|
|
|
|
save_cache: &save_cache
|
|
|
|
save_cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
key: *js_deps_cache_key
|
|
|
|
|
2019-03-25 17:02:26 +01:00
|
|
|
execution_steps: &execution_steps
|
2019-03-21 02:04:41 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *restore_cache
|
|
|
|
- run: npm install
|
|
|
|
- *save_cache
|
2019-09-24 19:48:08 +02:00
|
|
|
- run:
|
2020-01-23 08:03:38 +01:00
|
|
|
name: fetch engines from esvu
|
2019-09-24 19:48:08 +02:00
|
|
|
command: |
|
2020-01-23 08:03:38 +01:00
|
|
|
./node_modules/.bin/esvu install $hostName
|
|
|
|
- run: hostPath=$HOME/.esvu/bin/$hostPath npm run ci
|
2019-03-21 02:04:41 +01:00
|
|
|
|
|
|
|
jobs:
|
2020-05-13 16:06:10 +02:00
|
|
|
"Test262: verify tools; build & lint tests (Python 2)":
|
2019-03-21 02:04:41 +01:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:2.7
|
|
|
|
working_directory: ~/test262
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: "Install requirements for generation tool"
|
|
|
|
command: python -m pip install --user --requirement tools/generation/requirements.txt
|
|
|
|
- run:
|
2020-05-13 16:06:10 +02:00
|
|
|
name: "Install requirements for lint tool"
|
2019-03-21 02:04:41 +01:00
|
|
|
command: python -m pip install --user --requirement tools/lint/requirements.txt
|
|
|
|
- run:
|
|
|
|
name: "Test the generation tool"
|
|
|
|
command: ./tools/generation/test/run.py
|
|
|
|
- run:
|
|
|
|
name: "Test the lint tool"
|
|
|
|
command: ./tools/lint/test/run.py
|
|
|
|
- run:
|
2020-05-13 16:06:10 +02:00
|
|
|
name: "Build tests; check for new changes"
|
2019-03-21 02:04:41 +01:00
|
|
|
command: ./tools/scripts/ci_build.sh
|
|
|
|
- run:
|
2020-05-13 16:06:10 +02:00
|
|
|
name: "Lint tests"
|
2019-03-21 02:04:41 +01:00
|
|
|
command: ./tools/scripts/ci_lint.sh
|
|
|
|
# - run:
|
|
|
|
# name: "Run deploy"
|
|
|
|
# command: ./tools/scripts/deploy.sh
|
2020-05-13 16:06:10 +02:00
|
|
|
"Test262: verify tools; build & lint tests (Python 3)":
|
2019-08-09 16:04:33 +02:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.7.4
|
|
|
|
working_directory: ~/test262
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-08-14 18:46:24 +02:00
|
|
|
- run:
|
|
|
|
name: "Install requirements for generation tool"
|
|
|
|
command: python -m pip install --user --requirement tools/generation/requirements.txt
|
2019-08-09 16:04:33 +02:00
|
|
|
- run:
|
2020-05-13 16:06:10 +02:00
|
|
|
name: "Install requirements for lint tool"
|
2019-08-09 16:04:33 +02:00
|
|
|
command: python -m pip install --user --requirement tools/lint/requirements.txt
|
2019-08-14 18:46:24 +02:00
|
|
|
- run:
|
|
|
|
name: "Test the generation tool"
|
|
|
|
command: ./tools/generation/test/run.py
|
2019-08-09 16:04:33 +02:00
|
|
|
- run:
|
|
|
|
name: "Test the lint tool"
|
|
|
|
command: ./tools/lint/test/run.py
|
2020-05-13 16:06:10 +02:00
|
|
|
- run:
|
|
|
|
name: "Build tests; check for new changes"
|
|
|
|
command: ./tools/scripts/ci_build.sh
|
|
|
|
- run:
|
|
|
|
name: "Lint tests"
|
|
|
|
command: ./tools/scripts/ci_lint.sh
|
2019-03-21 02:04:41 +01:00
|
|
|
"V8: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
# Specify service dependencies here if necessary
|
|
|
|
# CircleCI maintains a library of pre-built images
|
|
|
|
# documented at https://circleci.com/docs/2.0/circleci-images/
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: d8
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: v8
|
2019-03-21 02:04:41 +01:00
|
|
|
hostName: v8
|
2019-03-25 17:02:26 +01:00
|
|
|
<<: [*execution_steps]
|
2019-03-21 02:04:41 +01:00
|
|
|
"V8 --harmony: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: d8
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: v8
|
2019-03-21 02:04:41 +01:00
|
|
|
hostName: v8
|
|
|
|
hostArgs: --harmony
|
2019-03-25 17:02:26 +01:00
|
|
|
<<: [*execution_steps]
|
2019-03-21 02:04:41 +01:00
|
|
|
"SpiderMonkey: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: jsshell
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: spidermonkey
|
2019-03-21 02:04:41 +01:00
|
|
|
hostName: spidermonkey
|
2019-03-25 17:02:26 +01:00
|
|
|
<<: [*execution_steps]
|
2019-03-21 02:04:41 +01:00
|
|
|
"ChakraCore: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: ch
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: chakra
|
2019-03-21 02:04:41 +01:00
|
|
|
hostName: chakra
|
2019-03-25 17:02:26 +01:00
|
|
|
<<: [*execution_steps]
|
2019-03-21 02:04:41 +01:00
|
|
|
"JSC: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
2019-09-24 19:48:08 +02:00
|
|
|
LANG: C
|
2019-03-21 02:04:41 +01:00
|
|
|
hostType: jsc
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: javascriptcore
|
2019-03-21 02:04:41 +01:00
|
|
|
hostName: javascriptcore
|
2019-03-25 17:02:26 +01:00
|
|
|
<<: [*execution_steps]
|
|
|
|
"XS: New or modified tests execution":
|
2019-03-21 02:04:41 +01:00
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
2019-03-25 17:02:26 +01:00
|
|
|
hostType: xs
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: xs
|
2019-03-25 17:02:26 +01:00
|
|
|
hostName: xs
|
|
|
|
<<: [*execution_steps]
|
2019-11-29 22:49:44 +01:00
|
|
|
"engine262: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: engine262
|
2020-01-23 08:03:38 +01:00
|
|
|
hostPath: engine262
|
2019-11-29 22:49:44 +01:00
|
|
|
hostName: engine262
|
|
|
|
hostArgs: --features=all
|
2020-01-23 08:03:38 +01:00
|
|
|
<<: [*execution_steps]
|
2020-02-20 19:31:44 +01:00
|
|
|
"GraalJS: New or modified tests execution":
|
|
|
|
docker:
|
|
|
|
- image: *node_latest
|
|
|
|
working_directory: ~/test262
|
|
|
|
environment:
|
|
|
|
hostType: graaljs
|
|
|
|
hostPath: graaljs
|
|
|
|
hostName: graaljs
|
|
|
|
<<: [*execution_steps]
|
2019-03-21 02:04:41 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
Tools:
|
|
|
|
jobs:
|
2020-05-13 16:06:10 +02:00
|
|
|
- "Test262: verify tools; build & lint tests (Python 2)"
|
|
|
|
- "Test262: verify tools; build & lint tests (Python 3)"
|
2019-03-21 02:04:41 +01:00
|
|
|
Tests execution:
|
|
|
|
jobs:
|
|
|
|
- "ChakraCore: New or modified tests execution"
|
|
|
|
- "JSC: New or modified tests execution"
|
|
|
|
- "SpiderMonkey: New or modified tests execution"
|
|
|
|
- "V8: New or modified tests execution"
|
|
|
|
- "V8 --harmony: New or modified tests execution"
|
2019-03-25 17:02:26 +01:00
|
|
|
- "XS: New or modified tests execution"
|
2019-11-29 22:49:44 +01:00
|
|
|
- "engine262: New or modified tests execution"
|
2022-04-19 18:20:54 +02:00
|
|
|
# - "GraalJS: New or modified tests execution"
|