blob: f80424bd7e3b99ee36459f2ff3d1a8cc40274040 [file] [log] [blame]
Christopher Dunn88184d12015-04-22 19:43:27 -07001#!/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
16set -vex
17
18env | sort
19
David Seifertd14d8c32017-06-26 06:11:51 +020020meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
21ninja -v -C build-${LIB_TYPE}
22ninja -v -C build-${LIB_TYPE} test
23rm -r build-${LIB_TYPE}