Skip to content

Commit

Permalink
Travis: add testing of JSON output against schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jul 6, 2019
1 parent 2377ef9 commit 7123662
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions travis/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# Configure Python pip
pip install --user --upgrade pip
pip config --user set global.progress_bar off
pip3 install --user jsonschema
3 changes: 2 additions & 1 deletion travis/csa/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

set -e
sudo apt-get update -qq
sudo apt-get install -qq python3-pip

./travis/before_install.sh

sudo apt-get update -qq
sudo apt-get install -qq sqlite3 libsqlite3-dev

wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
Expand Down
4 changes: 4 additions & 0 deletions travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ fi
make check
make install
find /tmp/proj_autoconf_install_from_dist_all

/tmp/proj_autoconf_install_from_dist_all/bin/projinfo EPSG:32631 -o JSON -q > out.json
jsonschema -i out.json /tmp/proj_autoconf_install_from_dist_all/share/proj/crsjson.schema.json

cd ..

# cmake build from generated tarball
Expand Down
3 changes: 2 additions & 1 deletion travis/linux_clang/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

set -e
sudo apt-get update -qq
sudo apt-get install -qq python3-pip

./travis/before_install.sh

sudo apt-get update -qq
sudo apt-get install -qq sqlite3 libsqlite3-dev
3 changes: 2 additions & 1 deletion travis/linux_gcc/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

set -e
sudo apt-get update -qq
sudo apt-get install -qq python3-pip

./travis/before_install.sh

sudo apt-get update -qq
sudo apt-get install -y cppcheck
sudo apt-get install -qq lcov
sudo apt-get install -qq doxygen graphviz
Expand Down
2 changes: 2 additions & 0 deletions travis/linux_gcc7/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

set -e
sudo apt-get update -qq
sudo apt-get install -qq python3-pip

./travis/before_install.sh

Expand Down
5 changes: 3 additions & 2 deletions travis/mingw32/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/bash

set -e
sudo apt-get update -qq
sudo apt-get install -qq python3-pip

./travis/before_install.sh

sudo apt-get update -qq
sudo apt-get install wget
sudo apt-get install binutils-mingw-w64-x86-64
sudo apt-get install gcc-mingw-w64-x86-64
sudo apt-get install g++-mingw-w64-x86-64
sudo apt-get install g++-mingw-w64
sudo apt-get install mingw-w64-tools
sudo apt-get install -y wine1.4-amd64
sudo apt-get install sqlite3
sudo apt-get install sqlite3

0 comments on commit 7123662

Please sign in to comment.