appstream-generator/test/ci/build_and_test.sh
Matthias Klumpp b4ba446c32 Rename download-js Meson option
The version with a dash more closely resembles how Meson build flags are
named.
2017-11-06 23:37:29 +01:00

27 lines
373 B
Bash
Executable File

#!/bin/sh
#
# This script is supposed to run inside the AppStream Generator Docker container
# on the CI system.
#
set -e
export LANG=C.UTF-8
echo "D compiler: $DC"
set -v
$DC --version
meson --version
#
# Build & Test
#
mkdir -p build && cd build
meson -Ddownload-js=true ..
ninja
# Run tests
./asgen_test
# Test install
DESTDIR=/tmp/install-ninja ninja install
cd ..