From 2eefb9cc7dc341cd7c350392a2e5b43f97669969 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 15 Apr 2023 22:31:09 +0200 Subject: ci: Clone kicad libraries for tests --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c47d156..1cb51ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,9 @@ test:archlinux: stage: test image: "registry.gitlab.com/gerbolyze/build-containers/archlinux:latest" script: - - pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' + - git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-symbols + - git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-footprints + - env KICAD_SYMBOLS=kicad-symbols KICAD_FOOTPRINTS=kicad-footprints pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' dependencies: - build:archlinux cache: @@ -44,7 +46,9 @@ test:ubuntu2204: image: "registry.gitlab.com/gerbolyze/build-containers/ubuntu:22.04" script: - python3 -m pip install pytest beautifulsoup4 pillow numpy slugify lxml click scipy - - python3 -m pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' + - git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-symbols + - git clone --depth 1 https://gitlab.com/kicad/libraries/kicad-footprints + - env KICAD_SYMBOLS=kicad-symbols KICAD_FOOTPRINTS=kicad-footprints python3 -m pytest -o 'testpaths=gerbonara/tests' -o 'norecursedirs=*' dependencies: - build:archlinux cache: -- cgit