-
Notifications
You must be signed in to change notification settings - Fork 97
ci: run the linter from travis with every build #75
Conversation
f7bfec8
to
25afd08
Compare
.travis.yml
Outdated
@@ -18,3 +18,4 @@ install: | |||
- 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? 🤔 |
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
Landed in 8e2de77 |
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com> PR-URL: #21059 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com> PR-URL: #21059 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Refs: ayojs/ayo#14 Refs: ayojs/ayo#75 Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com> PR-URL: #21059 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Matheus Marchini <matheus@sthima.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
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