appstream-generator/test/ci/build_and_test.sh

27 lines
373 B
Bash
Raw Normal View History

#!/bin/sh
#
# This script is supposed to run inside the AppStream Generator Docker container
# on the CI system.
#
set -e
2017-01-18 12:25:59 -08:00
export LANG=C.UTF-8
echo "D compiler: $DC"
set -v
$DC --version
meson --version
#
2017-04-20 11:30:11 -07:00
# Build & Test
#
2016-09-25 19:58:40 -07:00
mkdir -p build && cd build
meson -Ddownload-js=true ..
2016-09-25 19:58:40 -07:00
ninja
# Run tests
./asgen_test
2017-04-20 11:30:11 -07:00
# Test install
2016-09-25 19:58:40 -07:00
DESTDIR=/tmp/install-ninja ninja install
cd ..