diff options
| author | Mike Taves <mwtoews@gmail.com> | 2019-04-05 12:56:58 +1300 |
|---|---|---|
| committer | Mike Taves <mwtoews@gmail.com> | 2019-04-05 17:47:15 +1300 |
| commit | 2c28ca1798cb24b803c44ceebd34bb3f15822c87 (patch) | |
| tree | 5a8ed6d5be8792c145101a3474b73228b58247c5 /travis | |
| parent | 1e2e512f9a671df504f6f01eee53dc26939b3c0a (diff) | |
| download | PROJ-2c28ca1798cb24b803c44ceebd34bb3f15822c87.tar.gz PROJ-2c28ca1798cb24b803c44ceebd34bb3f15822c87.zip | |
Adjust test outputs
- Tests should use unified diff with expected results
- Show CMake build compile commands (VERBOSE=1)
- Travis CI only has two cores, so "-j2" is sufficent
Diffstat (limited to 'travis')
| -rwxr-xr-x | travis/csa/install.sh | 2 | ||||
| -rwxr-xr-x | travis/install.sh | 8 | ||||
| -rwxr-xr-x | travis/mingw32/install.sh | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/travis/csa/install.sh b/travis/csa/install.sh index 301aead9..12a1bf6d 100755 --- a/travis/csa/install.sh +++ b/travis/csa/install.sh @@ -6,6 +6,6 @@ set -e ./autogen.sh CXXFLAGS="-std=c++11" ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build -o scanbuildoutput -plist -v ./configure -./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build -o scanbuildoutput -plist -v make -j3 +./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build -o scanbuildoutput -plist -v make -j2 if grep -r "\.c" scanbuildoutput | grep "<string>" | grep -v -e "<key>" -e _generated_parser; then echo "error" && /bin/false; else echo "ok"; fi diff --git a/travis/install.sh b/travis/install.sh index e37644f4..c8da9046 100755 --- a/travis/install.sh +++ b/travis/install.sh @@ -27,7 +27,7 @@ if [ -f /usr/lib/jvm/java-7-openjdk-amd64/include/jni.h ]; then else ../configure --prefix=/tmp/proj_autoconf_install_from_dist_all fi -make -j3 +make -j2 make check make install find /tmp/proj_autoconf_install_from_dist_all @@ -37,7 +37,7 @@ cd .. mkdir build_cmake cd build_cmake cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/proj_cmake_install -make -j3 +VERBOSE=1 make -j2 make install # The cmake build is not able to generate the null file, so copy it at hand cp /tmp/proj_autoconf_install_from_dist_all/share/proj/null /tmp/proj_cmake_install/share/proj @@ -55,7 +55,7 @@ cd ../.. mkdir build_autoconf_grids cd build_autoconf_grids ../configure --prefix=/tmp/proj_autoconf_install_grids -make -j3 +make -j2 make check (cd src && make multistresstest && make test228) PROJ_LIB=../data src/multistresstest @@ -74,7 +74,7 @@ if [ "$BUILD_NAME" != "linux_clang" ]; then else ./configure fi -make -j3 +make -j2 make check # Rerun tests without grids not included in proj-datumgrid diff --git a/travis/mingw32/install.sh b/travis/mingw32/install.sh index e4fcfe72..d38f289f 100755 --- a/travis/mingw32/install.sh +++ b/travis/mingw32/install.sh @@ -13,7 +13,7 @@ ln -s /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll $HOME/.wine/drive_c/windo # build sqlite3 wget https://sqlite.org/2018/sqlite-autoconf-3250100.tar.gz tar xzf sqlite-autoconf-3250100.tar.gz -(cd sqlite-autoconf-3250100 && CC="ccache x86_64-w64-mingw32-gcc" CXX="ccache x86_64-w64-mingw32-g++" LD=x86_64-w64-mingw32-ld ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 && make -j3 && sudo make install) +(cd sqlite-autoconf-3250100 && CC="ccache x86_64-w64-mingw32-gcc" CXX="ccache x86_64-w64-mingw32-g++" LD=x86_64-w64-mingw32-ld ./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32 && make -j2 && sudo make install) ln -s /usr/x86_64-w64-mingw32/bin/libsqlite3-0.dll $HOME/.wine/drive_c/windows # prepare build files @@ -22,11 +22,11 @@ ln -s /usr/x86_64-w64-mingw32/bin/libsqlite3-0.dll $HOME/.wine/drive_c/windows mkdir build_autoconf cd build_autoconf CC="ccache x86_64-w64-mingw32-gcc" CXX="ccache x86_64-w64-mingw32-g++" LD=x86_64-w64-mingw32-ld ../configure --host=x86_64-w64-mingw32 --prefix=/tmp/proj_autoconf_install -make -j3 +make -j2 make install make dist-all find /tmp/proj_autoconf_install -(cd test; make -j3) +(cd test; make -j2) test/unit/test_cpp_api.exe cd .. # Now with grids @@ -38,7 +38,7 @@ cd .. mkdir build_autoconf_grids cd build_autoconf_grids CC="ccache x86_64-w64-mingw32-gcc" CXX="ccache x86_64-w64-mingw32-g++" LD=x86_64-w64-mingw32-ld ../configure --host=x86_64-w64-mingw32 --prefix=/tmp/proj_autoconf_install_nad -make -j3 +make -j2 make install find /tmp/proj_autoconf_install_nad #make check |
