2016-06-02 16:44:44 -07:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# This script is supposed to run inside the AppStream Generator Docker container
|
|
|
|
# on the CI system.
|
|
|
|
#
|
2016-10-15 08:29:13 -07:00
|
|
|
set -e
|
2017-01-18 12:25:59 -08:00
|
|
|
export LANG=C.UTF-8
|
2016-06-02 16:44:44 -07:00
|
|
|
|
2016-10-15 08:29:13 -07:00
|
|
|
echo "D compiler: $DC"
|
|
|
|
set -v
|
|
|
|
$DC --version
|
|
|
|
meson --version
|
2016-06-02 16:44:44 -07:00
|
|
|
|
2016-10-15 08:29:13 -07:00
|
|
|
#
|
2017-04-20 11:30:11 -07:00
|
|
|
# Build & Test
|
2016-10-15 08:29:13 -07:00
|
|
|
#
|
2016-09-25 19:58:40 -07:00
|
|
|
mkdir -p build && cd build
|
2017-11-06 14:37:29 -08:00
|
|
|
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 ..
|