diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-09 20:55:10 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-03-11 12:45:15 +0100 |
| commit | 968c7ab17eedd7f3c53f3860ff6fbcaddca417e0 (patch) | |
| tree | 10c26cbe2290c3215a4fc20fb3e4fb0ab9f492ae /ci/common | |
| parent | ffad8d4c51aed30eca90065cf0c92e404759e5ac (diff) | |
| download | rneovim-968c7ab17eedd7f3c53f3860ff6fbcaddca417e0.tar.gz rneovim-968c7ab17eedd7f3c53f3860ff6fbcaddca417e0.tar.bz2 rneovim-968c7ab17eedd7f3c53f3860ff6fbcaddca417e0.zip | |
ci/travis: use ninja instead of make
Diffstat (limited to 'ci/common')
| -rw-r--r-- | ci/common/build.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ci/common/build.sh b/ci/common/build.sh index 2748b15b0d..13305c0bad 100644 --- a/ci/common/build.sh +++ b/ci/common/build.sh @@ -1,5 +1,8 @@ top_make() { - ${MAKE_CMD} "$@" + echo '================================================================================' + # Travis has 1.5 virtual cores according to: + # http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM + ninja "$@" } build_make() { @@ -36,7 +39,7 @@ build_deps() { # update CMake configuration and update to newer deps versions. cd "${DEPS_BUILD_DIR}" echo "Configuring with '${DEPS_CMAKE_FLAGS}'." - CC= cmake ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/" + CC= cmake -G Ninja ${DEPS_CMAKE_FLAGS} "${TRAVIS_BUILD_DIR}/third-party/" if ! top_make; then exit 1 @@ -56,7 +59,7 @@ prepare_build() { mkdir -p "${BUILD_DIR}" cd "${BUILD_DIR}" echo "Configuring with '${CMAKE_FLAGS} $@'." - cmake ${CMAKE_FLAGS} "$@" "${TRAVIS_BUILD_DIR}" + cmake -G Ninja ${CMAKE_FLAGS} "$@" "${TRAVIS_BUILD_DIR}" } build_nvim() { |