Skip to content

Commit

Permalink
[TEST][CI] Update the CI to download the zim-testing-suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Apr 12, 2021
1 parent e3c59bd commit 00f04f3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
meson . build ${MESON_OPTION}
cd build
ninja
- name: Install test data
if: startsWith(matrix.target, 'native_')
shell: bash
run: |
wget -O- https://github.com/openzim/zim-testing-suite/releases/download/v0.1/zim-testing-suite-0.1.tar.gz | tar -xz -C $HOME
- name: Test
if: startsWith(matrix.target, 'native_')
shell: bash
Expand All @@ -52,6 +57,7 @@ jobs:
cd build
meson test --verbose
env:
ZIM_TEST_DATA_DIR: "/home/runner/zim-testing-suite-0.1"
SKIP_BIG_MEMORY_TEST: 1

Windows:
Expand All @@ -65,17 +71,24 @@ jobs:
python-version: '3.6'
- name: Install packages
run:
choco install ninja
choco install ninja wget
- name: Install python modules
run: pip3 install meson
- name: Compile
shell: cmd
run: .github\script\build_libzim.cmd
- name: Install test data
shell: bash
run: |
wget -O- https://github.com/openzim/zim-testing-suite/releases/download/v0.1/zim-testing-suite-0.1.tar.gz | tar -xz -C $HOME
- name: Test
shell: cmd
run: |
echo %cd%
cd build
meson test --verbose
env:
ZIM_TEST_DATA_DIR: "/home/runner/zim-testing-suite-0.1"

Linux:
strategy:
Expand Down Expand Up @@ -164,6 +177,11 @@ jobs:
ninja
env:
PKG_CONFIG_PATH: "/home/runner/BUILD_${{matrix.target}}/INSTALL/lib/pkgconfig:/home/runner/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig"
- name: Install test data
if: startsWith(matrix.target, 'native_')
shell: bash
run: |
wget -O- https://github.com/openzim/zim-testing-suite/releases/download/v0.1/zim-testing-suite-0.1.tar.gz | tar -xz -C $HOME
- name: Test
if: startsWith(matrix.target, 'native_')
shell: bash
Expand All @@ -172,6 +190,7 @@ jobs:
meson test --verbose
ninja coverage
env:
ZIM_TEST_DATA_DIR: "/home/runner/zim-testing-suite-0.1"
LD_LIBRARY_PATH: "/home/runner/BUILD_${{matrix.target}}/INSTALL/lib:/home/runner/BUILD_${{matrix.target}}/INSTALL/lib${{matrix.lib_postfix}}"
SKIP_BIG_MEMORY_TEST: 1
- name: Publish coverage
Expand Down

0 comments on commit 00f04f3

Please sign in to comment.