summaryrefslogtreecommitdiffstats
path: root/travis/travis-build-cpp.sh
blob: 07b3c90e71893ed5e7e9a23ab0d8cc8e4be0a9b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
set -e

source /source/travis/prelude.sh
source ${SOURCE_DIR}/travis/cpp-prelude.sh

BUILD_DIR=~/build
mkdir "${BUILD_DIR}"

cd ${SOURCE_DIR}
./bootstrap.sh java
mvn install --no-snapshot-updates --batch-mode --threads ${NUM_THREADS} \
            -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true
cd ${BUILD_DIR}
bash ${SOURCE_DIR}/bootstrap-cmake.sh ${SOURCE_DIR}
make -j ${NUM_THREADS}
make install
ctest3 --output-on-failure -j ${NUM_THREADS}
ccache --show-stats