Skip to content

Commit 183439e

Browse files
committed
ci: attempt at separate linter CI job
Refs: ayojs#71
1 parent f7bfec8 commit 183439e

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ os:
66
- osx
77
sudo: false
88
cache: ccache
9+
matrix:
10+
include:
11+
- os: linux
12+
env: LINTER_ONLY=true
913
before_install:
1014
- export HOMEBREW_NO_AUTO_UPDATE=1 # work around https://github.com/travis-ci/travis-ci/issues/7456
1115
- if [ $TRAVIS_OS_NAME = osx ]; then brew install ccache; fi
@@ -17,5 +21,4 @@ install:
1721
- ./configure
1822
- make -j2 V=
1923
script:
20-
- make -j2 test-ci
21-
- make lint
24+
- tools/run-ci.sh # do linter env variable detection

tools/run-ci.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
# always change the working directory to the project's root directory
5+
cd $(dirname $0)/..
6+
7+
if [ "${LINTER_ONLY}" = "true" ]; then
8+
make lint
9+
else
10+
make -j2 test-ci
11+
fi

0 commit comments

Comments
 (0)