Skip to content

Commit 5f4e104

Browse files
authored
Merge pull request open-source-parsers#1229 from open-source-parsers/pypi
Try meson/ninja from pypi
2 parents c60ebf7 + bb9db78 commit 5f4e104

File tree

6 files changed

+8
-14
lines changed

6 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ addons:
2222
- clang-8
2323
- valgrind
2424
matrix:
25-
allow_failures:
26-
- os: osx
2725
include:
2826
- name: Mac clang meson static release testing
2927
os: osx
@@ -44,6 +42,8 @@ matrix:
4442
CC="clang"
4543
LIB_TYPE=static
4644
BUILD_TYPE=release
45+
PYTHONUSERBASE="$(pwd)/LOCAL"
46+
PATH="$PYTHONUSERBASE/bin:$PATH"
4747
# before_install and install steps only needed for linux meson builds
4848
before_install:
4949
- source ./.travis_scripts/travis.before_install.${TRAVIS_OS_NAME}.sh

.travis_scripts/run-clang-format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,4 +353,4 @@ def main():
353353

354354

355355
if __name__ == '__main__':
356-
sys.exit(main())
356+
sys.exit(main())
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# NOTHING TO DO HERE
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
set -vex
22

3-
wget https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip
4-
unzip -q ninja-linux.zip -d build
5-
6-
pip3 install meson
7-
echo ${PATH}
8-
ls /usr/local
9-
ls /usr/local/bin
10-
export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH}
3+
pip3 install --user meson ninja
4+
which meson
5+
which ninja

reformat.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i

src/test_lib_json/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3920,8 +3920,7 @@ class VersionTest : public JsonTest::TestCase {};
39203920

39213921
JSONTEST_FIXTURE_LOCAL(VersionTest, VersionNumbersMatch) {
39223922
std::ostringstream vstr;
3923-
vstr << JSONCPP_VERSION_MAJOR << '.'
3924-
<< JSONCPP_VERSION_MINOR << '.'
3923+
vstr << JSONCPP_VERSION_MAJOR << '.' << JSONCPP_VERSION_MINOR << '.'
39253924
<< JSONCPP_VERSION_PATCH;
39263925
JSONTEST_ASSERT_EQUAL(vstr.str(), std::string(JSONCPP_VERSION_STRING));
39273926
}

0 commit comments

Comments
 (0)