Billy Donahue | bbb54ef | 2015-08-31 02:19:39 -0400 | [diff] [blame] | 1 | #!/usr/bin/env sh |
| 2 | # This is called by `.travis.yml` via Travis CI. |
| 3 | # Travis supplies $TRAVIS_OS_NAME. |
| 4 | # http://docs.travis-ci.com/user/multi-os/ |
| 5 | # Our .travis.yml also defines: |
| 6 | # - SHARED_LIB=ON/OFF |
| 7 | # - STATIC_LIB=ON/OFF |
| 8 | # - CMAKE_PKG=ON/OFF |
| 9 | # - BUILD_TYPE=release/debug |
| 10 | # - VERBOSE_MAKE=false/true |
| 11 | # - VERBOSE (set or not) |
| 12 | |
| 13 | # -e: fail on error |
| 14 | # -v: show commands |
| 15 | # -x: show expanded commands |
| 16 | set -vex |
| 17 | |
| 18 | env | sort |
| 19 | |
Billy Donahue | 12a8c19 | 2015-08-31 02:58:45 -0400 | [diff] [blame^] | 20 | mkdir build |
| 21 | cd build |
| 22 | cmake ../googletest |
Billy Donahue | bbb54ef | 2015-08-31 02:19:39 -0400 | [diff] [blame] | 23 | make |
| 24 | |
| 25 | # Python is not available in Travis for osx. |
| 26 | # https://github.com/travis-ci/travis-ci/issues/2320 |
| 27 | if [ "$TRAVIS_OS_NAME" != "osx" ] |
| 28 | then |
| 29 | make |
| 30 | # valgrind --error-exitcode=42 --leak-check=full ./src/test_lib_json/jsoncpp_test |
| 31 | fi |