Merge pull request #51 from Cogitri/bionic-ci

ci: install ninja via pip
This commit is contained in:
Sönke Ludwig 2020-05-12 12:15:59 +02:00 committed by GitHub
commit 310d617e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View file

@ -13,10 +13,13 @@ d:
- dmd-nightly
- ldc-latest-ci
env:
global:
- TEST_MESON=true
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update && sudo apt-get -y install ninja-build python3-pip python3-setuptools; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ninja; fi
- pip3 install meson
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update && sudo apt-get -y install python3-pip python3-setuptools; fi
- pip3 install meson ninja
matrix:
include:

View file

@ -1,6 +1,6 @@
project('taggedalgebraic', 'd',
meson_version: '>=0.50',
version: '0.11.9'
version: '0.11.12'
)
project_soversion = '0'

View file

@ -11,5 +11,7 @@ if [ ! -z "${COVERAGE:-}" ]; then
else
dub test
meson build && ninja -C build || echo Warning: Meson build failed!
if [ "x$TEST_MESON" = "xtrue" ] && [ "x$(dmd --version | head -n1)" != "xDMD64 D Compiler v2.085.1" ]; then
meson build && ninja -C build
fi
fi