Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! build,test: add .ci.yml for containered tests
  • Loading branch information
rvagg committed Jun 30, 2020
commit b52aa4b8a0d65a71a29260ee34adcf2031b31313
5 changes: 4 additions & 1 deletion .ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ tests:
label: Lint JS, C++, Python, Markdown & Docs
image: node-linter
execute: |
make lint-ci || {
make lint-py-build PYTHON=python3
make lint-py PYTHON=python3
make lint-py-build PYTHON=python2
make lint-ci PYTHON=python2 || {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't PYTHON be defined before running make instead of after?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do either.

PYTHON=python2 make lint-ci

Sets the PYTHON environment variable in the shell and runs make, which turns environment variables into make variables: https://www.gnu.org/software/make/manual/html_node/Environment.html#Environment

make lint-ci PYTHON=python2

Overrides the make variable from the command line: https://www.gnu.org/software/make/manual/html_node/Overriding.html

cat test-eslint.tap | grep -v '^ok\|^TAP version 13\|^1\.\.' | sed '/^\s*$/d' &&
exit 1; }

Expand Down