mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 18:51:04 +08:00
Merge pull request #1229 from open-source-parsers/pypi
Try meson/ninja from pypi
This commit is contained in:
commit
5f4e10462f
@ -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
|
||||||
|
@ -353,4 +353,4 @@ def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# NOTHING TO DO HERE
|
|
@ -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
1
reformat.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i
|
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user