X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=.gitlab-ci.yml;h=18073380583598e5b6618506254945521311a8a0;hb=5454b1260a732e633bb06fb074d4350780420e46;hp=3c8f412cc33ec3019d8748f5a362fe182bd28597;hpb=18a8c7317f9a900ffef5583203c9f64f3a65d227;p=openpower-isa.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c8f412c..18073380 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ cache: when: always paths: - ccache + - linux.bundle build: stage: build @@ -12,6 +13,7 @@ build: # one package per line to simplify sorting, git diff, etc. - >- apt-get -y install --no-install-recommends + aria2 autoconf binutils-powerpc64-linux-gnu binutils-powerpc64le-linux-gnu @@ -47,7 +49,12 @@ build: - export CCACHE_COMPILERCHECK=content - ccache --zero-stats || true - ccache --show-stats || true - - python3 -m pip install --user pytest-xdist==3.3.1 pytest==7.3.1 + # one package per line to simplify sorting, git diff, etc. + - >- + python3 -m pip install --user + pytest-xdist==3.3.1 + pytest==7.3.1 + pytest-subtests==0.11.0 script: - git clone --depth 1 -b yosys-0.17 https://github.com/YosysHQ/yosys.git yosys - pushd yosys @@ -103,8 +110,19 @@ build: - python3 setup.py develop - popd + # kernel.org recommends cloning from a bundle in CI since that uses a CDN + - if [[ ! -f linux.bundle ]]; then aria2c -x 16 -s 16 -o linux.bundle https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/clone.bundle || { rm -f linux.bundle; exit 1; }; fi + - git clone linux.bundle + - pushd linux + - git remote set-url origin https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git + - git remote update origin + - git checkout v6.5.8 + - popd + - python3 setup.py develop - make generate &> generate.log || { cat generate.log; false; } + - python3 -m openpower.syscalls json linux > src/openpower/syscalls/syscalls.json + - SILENCELOG='!*,default' pytest -v --maxfail=10