Skip to content

Commit

Permalink
Split travis build into modules
Browse files Browse the repository at this point in the history
  • Loading branch information
UnrealQuester committed Jan 17, 2016
1 parent bf70aa2 commit 73e5edf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
os:
- linux
- osx
env:
- MODULE="core"
- MODULE="metrics"
- MODULE="rules" DEP="core metrics"
- MODULE="reporters" DEP="core"

language: cpp
sudo: required
dist: trusty
Expand All @@ -9,4 +15,4 @@ before_install:
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install cmake; fi
script:
- cd oclint-scripts
- ./travis
- ./travis $MODULE $DEP
8 changes: 7 additions & 1 deletion oclint-scripts/travis
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
./clang prebuilt
./googleTest co
./googleTest build
./test
MODULE="$1"
shift
for dep in $*
do
./test "$dep"
done
./test "$MODULE"

0 comments on commit 73e5edf

Please sign in to comment.