Github Actions fix unit tests. [ci skip]

This commit is contained in:
Pentarctagon 2020-11-20 13:23:33 -06:00
parent 7a90b3a134
commit c5bf66659b
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0
2 changed files with 14 additions and 10 deletions

View file

@ -6,22 +6,15 @@ on:
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
linux-01:
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
with:
submodules: "true"
# Runs a set of commands using the runners shell
- name: Run a multi-line script
- name: Ubuntu 20.04 - scons, gcc, LTO, unit tests
run: |
echo "Ubuntu CI test"
./.github/workflows/ci-scripts/ubuntu.sh

View file

@ -7,6 +7,17 @@ scons wesnoth wesnothd campaignd boost_unit_tests build=release \
ls -Al
# set the fake display for unit tests
export DISPLAY=:99.0
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1024x768x24
red=$(tput setaf 1)
reset=$(tput sgr0)
# print given message in red
error() { printf '%s%s%s\n' "$red" "$*" "$reset"; }
# print given message and exit
die() { error "$*"; exit 1; }
# print given message ($1) and execute given command; sets EXIT_VAL on failure
execute() {
local message=$1; shift
@ -26,7 +37,7 @@ checkindent() {
execute "WML validation" ./utils/travis/schema_validation.sh
execute "WML indentation check" checkindent
execute "WML tests" ./run_wml_tests -g -v -c -t "$WML_TEST_TIME"
execute "WML tests" ./run_wml_tests -g -v -c -t 20
execute "Play tests" ./utils/travis/play_test_executor.sh
execute "Boost unit tests" ./utils/travis/test_executor.sh