mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
af03de48d8
The `lint-ci` Makefile target differs from `lint` in that it writes to a tap file and not stdout and also stops execution when an error is found (e.g. if JavaScript linting fails the C++ and docs linting are not run). The switch to `lint-ci` was to enable Python linting. Revert to `lint` and add the `lint-py` target. PR-URL: https://github.com/nodejs/node/pull/27062 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
os: linux
|
|
dist: xenial
|
|
jobs:
|
|
include:
|
|
- stage: "Lint and Compile"
|
|
name: "First commit message adheres to guidelines at <a href=\"https://goo.gl/p2fr5Q\">https://goo.gl/p2fr5Q</a>"
|
|
if: type = pull_request
|
|
language: node_js
|
|
node_js: "node"
|
|
script:
|
|
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
|
|
bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
|
|
fi
|
|
|
|
- name: "Linter"
|
|
language: node_js
|
|
node_js: "node"
|
|
install:
|
|
- make lint-py-build || true
|
|
script:
|
|
- NODE=$(which node) make lint lint-py
|
|
|
|
- name: "Compile V8"
|
|
language: cpp
|
|
cache: ccache
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-6
|
|
install:
|
|
- CC='ccache gcc-6' CXX='ccache g++-6' ./configure
|
|
script:
|
|
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 -C out V=1 v8
|
|
|
|
- name: "Compile Node.js"
|
|
language: cpp
|
|
cache: ccache
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-6
|
|
install:
|
|
- CC='ccache gcc-6' CXX='ccache g++-6' ./configure
|
|
script:
|
|
- CC='ccache gcc-6' CXX='ccache g++-6' make -j2 V=1
|
|
|
|
- stage: "Tests"
|
|
name: "Test Suite"
|
|
language: cpp
|
|
cache: ccache
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- g++-6
|
|
install:
|
|
- export CC='ccache gcc-6' CXX='ccache g++-6' JOBS=2
|
|
- ./configure
|
|
# We already have a compile log in the above job
|
|
- make -j2 > /dev/null
|
|
- make -j1 build-addons build-js-native-api-tests build-node-api-tests > /dev/null
|
|
script:
|
|
- JOBS=2 FLAKY_TESTS=skip make -s -j1 V= test-ci | grep -F -e "---" -e "..." -v
|