ci: Add python-jsonschema

Which is used to validate the json schema files in the various test
directories in a unit test.
pull/6816/head
Dylan Baker 5 years ago
parent a3f39fde1b
commit 91050e0c7c
  1. 2
      .github/workflows/os_comp.yml
  2. 6
      azure-pipelines.yml
  3. 1
      ci/ciimage/arch/install.sh
  4. 2
      ci/run.ps1
  5. 1
      ci/travis_install.sh

@ -15,7 +15,7 @@ jobs:
- name: Install Dependencies - name: Install Dependencies
run: | run: |
sudo apt update -yq sudo apt update -yq
sudo apt install -yq --no-install-recommends python3-setuptools python3-pip g++ gfortran gobjc gobjc++ zlib1g-dev python-dev python3-dev sudo apt install -yq --no-install-recommends python3-setuptools python3-pip g++ gfortran gobjc gobjc++ zlib1g-dev python-dev python3-dev python3-jsonschema
- name: Install ninja-build tool - name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v1 uses: seanmiddleditch/gha-setup-ninja@v1
- name: Python version - name: Python version

@ -100,8 +100,8 @@ jobs:
displayName: Install Dependencies displayName: Install Dependencies
- script: | - script: |
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32 set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
env.exe -- python3 -m pip --disable-pip-version-check install pefile pytest-xdist env.exe -- python3 -m pip --disable-pip-version-check install pefile pytest-xdist jsonschema
displayName: pip install pefile pytest-xdist displayName: pip install pefile pytest-xdist jsonschema
- script: | - script: |
set BOOST_ROOT= set BOOST_ROOT=
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32 set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
@ -169,7 +169,7 @@ jobs:
mingw-w64-$(MSYS2_ARCH)-python3-setuptools ^ mingw-w64-$(MSYS2_ARCH)-python3-setuptools ^
mingw-w64-$(MSYS2_ARCH)-python3-pip ^ mingw-w64-$(MSYS2_ARCH)-python3-pip ^
%TOOLCHAIN% %TOOLCHAIN%
%MSYS2_ROOT%\usr\bin\bash -lc "python3 -m pip --disable-pip-version-check install pefile" %MSYS2_ROOT%\usr\bin\bash -lc "python3 -m pip --disable-pip-version-check install pefile jsonschema"
displayName: Install Dependencies displayName: Install Dependencies
- script: | - script: |
set BOOST_ROOT= set BOOST_ROOT=

@ -12,6 +12,7 @@ pkgs=(
itstool gtk3 java-environment=8 gtk-doc llvm clang sdl2 graphviz itstool gtk3 java-environment=8 gtk-doc llvm clang sdl2 graphviz
doxygen vulkan-validation-layers openssh mercurial gtk-sharp-2 qt5-tools doxygen vulkan-validation-layers openssh mercurial gtk-sharp-2 qt5-tools
libwmf valgrind cmake netcdf-fortran openmpi nasm gnustep-base gettext libwmf valgrind cmake netcdf-fortran openmpi nasm gnustep-base gettext
python-jsonschema
# cuda # cuda
) )

@ -67,7 +67,7 @@ python --version
# Needed for running unit tests in parallel. # Needed for running unit tests in parallel.
echo "" echo ""
python -m pip --disable-pip-version-check install --upgrade pefile pytest-xdist python -m pip --disable-pip-version-check install --upgrade pefile pytest-xdist jsonschema
echo "" echo ""
echo "=== Start running tests ===" echo "=== Start running tests ==="

@ -11,6 +11,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$MESON_ARGS" =~ .*unity=on.* ]]; then if [[ "$MESON_ARGS" =~ .*unity=on.* ]]; then
which pkg-config || brew install pkg-config which pkg-config || brew install pkg-config
fi fi
python3 -m pip install jsonschema
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
msg "Running Linux setup" msg "Running Linux setup"
docker pull mesonbuild/eoan docker pull mesonbuild/eoan

Loading…
Cancel
Save