mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Implement CI tests on ArchLinux via docker container.
This commit is contained in:
parent
31c9c5e080
commit
0b670680d7
15
.github/workflows/ci-docker.yml
vendored
Normal file
15
.github/workflows/ci-docker.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
name: ci-tests-docker
|
||||
on: [push]
|
||||
jobs:
|
||||
ci_tests_archlinux:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test Docker Action
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Test Action
|
||||
uses: ./util/ci/actions/archlinux-test
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: TestLog
|
||||
path: ${{ github.workspace }}/LastTest.log
|
8
util/ci/actions/archlinux-test/Dockerfile
Normal file
8
util/ci/actions/archlinux-test/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
from archlinux/base
|
||||
run pacman -Syu --quiet --noconfirm gcc cmake make boost python2 pkg-config gettext guile git ninja gtest gmock sqlite3 webkit2gtk swig gwenhywfar aqbanking intltool libxslt postgresql-libs libmariadbclient libdbi libdbi-drivers > /dev/null
|
||||
run echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
|
||||
run echo en_GB.UTF-8 UTF-8 >> /etc/locale.gen
|
||||
run echo fr_FR.UTF-8 UTF-8 >> /etc/locale.gen
|
||||
run locale-gen
|
||||
copy entrypoint.sh /
|
||||
entrypoint /entrypoint.sh
|
5
util/ci/actions/archlinux-test/action.yaml
Normal file
5
util/ci/actions/archlinux-test/action.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
name: 'CI Tests ArchLinux'
|
||||
description: 'Run GnuCash CI tests in an ArchLinux Docker'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
13
util/ci/actions/archlinux-test/entrypoint.sh
Executable file
13
util/ci/actions/archlinux-test/entrypoint.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash -le
|
||||
|
||||
mkdir -p "$HOME"/.local/share
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
export TZ="America/Los_Angeles"
|
||||
|
||||
cmake /github/workspace -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -G Ninja
|
||||
ninja
|
||||
ninja check
|
||||
|
||||
cp Testing/Temporary/LastTest.log /github/workspace
|
Loading…
Reference in New Issue
Block a user