Skip to content

Commit

Permalink
ci: attempt at separate linter CI job
Browse files Browse the repository at this point in the history
Refs: ayojs#71
  • Loading branch information
Fishrock123 committed Sep 21, 2017
1 parent f7bfec8 commit 183439e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ os:
- osx
sudo: false
cache: ccache
matrix:
include:
- os: linux
env: LINTER_ONLY=true
before_install:
- export HOMEBREW_NO_AUTO_UPDATE=1 # work around https://github.com/travis-ci/travis-ci/issues/7456
- if [ $TRAVIS_OS_NAME = osx ]; then brew install ccache; fi
Expand All @@ -17,5 +21,4 @@ install:
- ./configure
- make -j2 V=
script:
- make -j2 test-ci
- make lint
- tools/run-ci.sh # do linter env variable detection
11 changes: 11 additions & 0 deletions tools/run-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -ev

# always change the working directory to the project's root directory
cd $(dirname $0)/..

if [ "${LINTER_ONLY}" = "true" ]; then
make lint
else
make -j2 test-ci
fi

0 comments on commit 183439e

Please sign in to comment.