File: run-test.sh

package info (click to toggle)
ruby-cairo 1.17.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,532 kB
  • sloc: ruby: 11,997; ansic: 10,183; sh: 48; makefile: 4
file content (28 lines) | stat: -rwxr-xr-x 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

set -eux

echo "::group::Prepare build directory"
rm -rf rcairo.build
cp -a /rcairo/ rcairo.build
pushd rcairo.build
echo "::endgroup::"

echo "::group::Install dependencies"
bundle config set --local path vendor/bundle
# --jobs=1 is needed to avoid parallel native package installations.
RCAIRO_SOURCE_DIR=$PWD MAKEFLAGS="-j$(nproc)" bundle install --jobs=1
echo "::endgroup::"

pushd ext/cairo
echo "::group::Configure"
bundle exec extconf.rb --enable-debug-build
echo "::endgroup::"
echo "::group::Build"
bundle exec make -j$(nproc)
echo "::endgroup::"
popd

echo "::group::Test"
bundle exec test/run-test.rb "$@"
echo "::endgroup::"