mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-13 15:51:28 +00:00
Slim down CI stages
This commit is contained in:
parent
66cc359849
commit
f56face188
48
.travis.yml
48
.travis.yml
@ -1,46 +1,24 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
before_install: npm i -g npm@latest --no-audit
|
before_install: npm config set progress=false && npm i -g npm@latest --no-audit
|
||||||
install: npm config set progress=false && npm i --no-audit
|
install: npm i --no-audit
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
stages:
|
|
||||||
- name: check-pr
|
|
||||||
if: type = pull_request
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|
||||||
- stage: check-pr
|
|
||||||
node_js: lts/*
|
|
||||||
script: ./scripts/check-pr.sh
|
|
||||||
env: Checks contributing guidelines before testing pull requests
|
|
||||||
|
|
||||||
- stage: lint
|
|
||||||
node_js: node
|
|
||||||
script: npm run lint
|
|
||||||
env: Checks the sources with TSLint
|
|
||||||
|
|
||||||
- stage: test
|
|
||||||
node_js: lts/*
|
|
||||||
script: npm run clean && node bin/asc -v && npm test
|
|
||||||
env: Tests the sources on latest node.js LTS
|
|
||||||
- node_js: node
|
|
||||||
script: npm run clean && node bin/asc -v && npm test
|
|
||||||
env: Tests the sources on latest stable node.js
|
|
||||||
- node_js: lts/*
|
- node_js: lts/*
|
||||||
script:
|
script:
|
||||||
- npm run clean
|
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/check-pr.sh; fi
|
||||||
- cd $TRAVIS_BUILD_DIR/tests/allocators/arena && npm run build && cd .. && npm test arena
|
- npm run all
|
||||||
- cd $TRAVIS_BUILD_DIR/tests/allocators/buddy && npm run build && cd .. && npm test buddy
|
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
- cd $TRAVIS_BUILD_DIR/tests/allocators/tlsf && npm run build && cd .. && npm test tlsf
|
cd $TRAVIS_BUILD_DIR/tests/allocators/arena && npm run build && cd .. && npm test arena &&
|
||||||
env: Tests the allocators on latest node.js LTS
|
cd $TRAVIS_BUILD_DIR/tests/allocators/buddy && npm run build && cd .. && npm test buddy &&
|
||||||
|
cd $TRAVIS_BUILD_DIR/tests/allocators/tlsf && npm run build && cd .. && npm test tlsf;
|
||||||
- stage: build
|
fi
|
||||||
node_js: lts/*
|
env: Runs the tests on node.js LTS
|
||||||
script: npm run build && node bin/asc -v && npm test
|
|
||||||
env: Builds and tests the bundle on latest node.js LTS
|
|
||||||
- node_js: node
|
- node_js: node
|
||||||
script: npm run build && node bin/asc -v && npm test
|
script:
|
||||||
env: Builds and tests the bundle on latest stable node.js
|
- npm run all
|
||||||
|
env: Runs the tests on node.js stable
|
||||||
|
14
package.json
14
package.json
@ -41,15 +41,15 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode production --display-modules",
|
"build": "webpack --mode production --display-modules",
|
||||||
"clean": "node scripts/clean",
|
"clean": "node scripts/clean",
|
||||||
"lint": "npm run lint:compiler && npm run lint:library",
|
"check": "npm run check:config && npm run check:compiler && npm run check:library",
|
||||||
"lint:compiler": "tslint -c tslint.json --project src --formatters-dir lib/lint/formatters --format as",
|
"check:config": "tsc --noEmit -p src --diagnostics --listFiles",
|
||||||
"lint:library": "tslint -c tslint.json --project std/assembly --formatters-dir lib/lint/formatters --format as",
|
"check:compiler": "tslint -c tslint.json --project src --formatters-dir lib/lint/formatters --format as",
|
||||||
"test:config": "tsc --noEmit -p src --diagnostics --listFiles",
|
"check:library": "tslint -c tslint.json --project std/assembly --formatters-dir lib/lint/formatters --format as",
|
||||||
|
"test": "npm run test:parser && npm run test:compiler",
|
||||||
"test:parser": "node tests/parser",
|
"test:parser": "node tests/parser",
|
||||||
"test:compiler": "node tests/compiler",
|
"test:compiler": "node tests/compiler",
|
||||||
"test": "npm run test:config --scripts-prepend-node-path && npm run test:parser --scripts-prepend-node-path && npm run test:compiler --scripts-prepend-node-path",
|
"make": "npm run clean && npm test && npm run build && npm test",
|
||||||
"test:pr": "npm run clean && npm test && npm run build && npm test && npm run clean",
|
"all": "npm run check && npm run make",
|
||||||
"all": "npm run lint && npm run clean && npm test && npm run build && npm test",
|
|
||||||
"docs": "typedoc --tsconfig tsconfig-docs.json --mode modules --name \"AssemblyScript Compiler API\" --out ./docs/api --ignoreCompilerErrors --excludeNotExported --excludePrivate --excludeExternals --exclude **/std/** --includeDeclarations --readme src/README.md"
|
"docs": "typedoc --tsconfig tsconfig-docs.json --mode modules --name \"AssemblyScript Compiler API\" --out ./docs/api --ignoreCompilerErrors --excludeNotExported --excludePrivate --excludeExternals --exclude **/std/** --includeDeclarations --readme src/README.md"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user