-
Notifications
You must be signed in to change notification settings - Fork 75
ci: run the linter from travis with every build #75
Conversation
f7bfec8 to
25afd08
Compare
.travis.yml
Outdated
| - make -j2 V= | ||
| script: | ||
| - make -j2 test-ci | ||
| - make lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can make it a separate task with include, an env var, and a conditional in script - it's probably worth doing it now.
25afd08 to
183439e
Compare
|
Oops, looks like the linter is still trying to build. I really do not find travis' docs very usable. :/ |
tools/run-ci.sh
Outdated
| # always change the working directory to the project's root directory | ||
| cd $(dirname $0)/.. | ||
|
|
||
| if [ "${LINTER_ONLY}" = "true" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you may want ${LINTER_ONLY-} just in case the u option is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean - in case set -u is used in the bash script?
|
Is the intention to have make |
Correct. This is how it is in the Node CI, e.g. https://ci.nodejs.org/job/node-test-commit/12497/. |
147396f to
c5ff6fc
Compare
c5ff6fc to
7dc4f34
Compare
7dc4f34 to
811cdb3
Compare
|
Where is run-ci.sh used? |
|
@TimothyGu Please check the commit history. I have no way of testing this locally or marking this as "in progress". Looks like this is working now though. I'm going to clean it up and squash it. |
Divides the CI jobs by a custom `matrix:`, with a new linter job using an existing node.js binary to run `make lint-ci` (eslint). Refs: ayojs#71
811cdb3 to
ee67fc0
Compare
|
Ok this should be good to merge if this passes, I think. |
|
I'm okay with landing this without a macOS run. Travis is have some issues with their macOS infrastructure: https://www.traviscistatus.com/ |
|
Looks like it is building ok for us - its just taking a long tie to initially get started. |
|
All green. |
|
Can this be merged? 🤔 |
addaleax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, landing
Divides the CI jobs by a custom `matrix:`, with a new linter job using an existing node.js binary to run `make lint-ci` (eslint). Refs: #71 PR-URL: #75 Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
|
Landed in 8e2de77 |
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <[email protected]>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <[email protected]> PR-URL: #21059 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Shingo Inoue <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <[email protected]> PR-URL: #21059 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Shingo Inoue <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <[email protected]> PR-URL: #21059 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Shingo Inoue <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
It'd be nice to have it run as a separate task, but I think this should
work for now.
Refs: #71
cc @addaleax
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
ci