Skip to content

Commit

Permalink
Simplify Travis script. #301
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Feb 10, 2020
1 parent 101601d commit cc25bc4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,13 @@ before_script:
- ${CXX} --version

script:
# Check build without libosrm
- make || travis_terminate 1
# Check build with libosrm installed only if relevant files have
# been modified.
- CHANGED_FILES=`git diff --name-only master ${TRAVIS_COMMIT}`
# Check build without libosrm only if source files have been
# modified.
- echo ${CHANGED_FILES}
- if echo ${CHANGED_FILES} | grep -v -e "\.h" -e "\.cpp"; then travis_terminate 0; fi
- make || travis_terminate 1
# Check build with libosrm installed only on master and if relevant
# files have been modified.
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] && echo ${CHANGED_FILES} | grep -v "libosrm_wrapper"; then travis_terminate 0; fi
- if echo ${CHANGED_FILES} | grep -v "libosrm_wrapper"; then travis_terminate 0; fi
- make clean
- cd ${ROOT_FOLDER}
- sudo apt-get install build-essential git cmake pkg-config libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev libzip-dev lua5.2 liblua5.2-dev libtbb-dev libluabind-dev libluabind0.9.1v5
Expand Down

0 comments on commit cc25bc4

Please sign in to comment.