Github Actions fix unit tests. [ci skip]
This commit is contained in:
parent
7a90b3a134
commit
c5bf66659b
2 changed files with 14 additions and 10 deletions
11
.github/workflows/ci-main.yml
vendored
11
.github/workflows/ci-main.yml
vendored
|
@ -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
|
||||
|
|
13
.github/workflows/ci-scripts/docker.sh
vendored
13
.github/workflows/ci-scripts/docker.sh
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue