Merge pull request #1229 from open-source-parsers/pypi

Try meson/ninja from pypi
This commit is contained in:
Christopher Dunn 2020-10-10 11:30:19 -05:00 committed by GitHub
commit 5f4e10462f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 14 deletions

View File

@ -22,8 +22,6 @@ addons:
- clang-8 - clang-8
- valgrind - valgrind
matrix: matrix:
allow_failures:
- os: osx
include: include:
- name: Mac clang meson static release testing - name: Mac clang meson static release testing
os: osx os: osx
@ -44,6 +42,8 @@ matrix:
CC="clang" CC="clang"
LIB_TYPE=static LIB_TYPE=static
BUILD_TYPE=release BUILD_TYPE=release
PYTHONUSERBASE="$(pwd)/LOCAL"
PATH="$PYTHONUSERBASE/bin:$PATH"
# before_install and install steps only needed for linux meson builds # before_install and install steps only needed for linux meson builds
before_install: before_install:
- source ./.travis_scripts/travis.before_install.${TRAVIS_OS_NAME}.sh - source ./.travis_scripts/travis.before_install.${TRAVIS_OS_NAME}.sh

View File

@ -1 +0,0 @@
# NOTHING TO DO HERE

View File

@ -1,10 +1,5 @@
set -vex set -vex
wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip pip3 install --user meson ninja
unzip -q ninja-linux.zip -d build which meson
which ninja
pip3 install meson
echo ${PATH}
ls /usr/local
ls /usr/local/bin
export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH}

1
reformat.sh Normal file
View File

@ -0,0 +1 @@
find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i

View File

@ -3920,8 +3920,7 @@ class VersionTest : public JsonTest::TestCase {};
JSONTEST_FIXTURE_LOCAL(VersionTest, VersionNumbersMatch) { JSONTEST_FIXTURE_LOCAL(VersionTest, VersionNumbersMatch) {
std::ostringstream vstr; std::ostringstream vstr;
vstr << JSONCPP_VERSION_MAJOR << '.' vstr << JSONCPP_VERSION_MAJOR << '.' << JSONCPP_VERSION_MINOR << '.'
<< JSONCPP_VERSION_MINOR << '.'
<< JSONCPP_VERSION_PATCH; << JSONCPP_VERSION_PATCH;
JSONTEST_ASSERT_EQUAL(vstr.str(), std::string(JSONCPP_VERSION_STRING)); JSONTEST_ASSERT_EQUAL(vstr.str(), std::string(JSONCPP_VERSION_STRING));
} }