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 |
Billy Donahue | 520d30c | 2015-08-31 09:54:37 -0400 | [diff] [blame] | 16 | set -evx |
Billy Donahue | bbb54ef | 2015-08-31 02:19:39 -0400 | [diff] [blame] | 17 | |
| 18 | env | sort |
| 19 | |
Billy Donahue | fbb0b96 | 2015-09-01 02:24:48 -0400 | [diff] [blame^] | 20 | mkdir build || true |
Billy Donahue | bbb54ef | 2015-08-31 02:19:39 -0400 | [diff] [blame] | 21 | |
Billy Donahue | fbb0b96 | 2015-09-01 02:24:48 -0400 | [diff] [blame^] | 22 | ( ( mkdir build/googletest || true ) && |
Billy Donahue | 520d30c | 2015-08-31 09:54:37 -0400 | [diff] [blame] | 23 | cd build/googletest && |
Billy Donahue | fbb0b96 | 2015-09-01 02:24:48 -0400 | [diff] [blame^] | 24 | cmake -Dgtest_build_tests=ON -Dgtest_build_samples=ON ../../googletest && |
| 25 | make && make test) |
| 26 | ( ( mkdir build/googlemock || true ) && |
Billy Donahue | 520d30c | 2015-08-31 09:54:37 -0400 | [diff] [blame] | 27 | cd build/googlemock && |
Billy Donahue | fbb0b96 | 2015-09-01 02:24:48 -0400 | [diff] [blame^] | 28 | cmake -Dgmock_build_tests=ON -Dgtest_build_samples=ON ../../googlemock && |
| 29 | make && make test) |