WIP rewriting compiler IR so regalloc works correctly
[bigint-presentation-code.git] / .gitlab-ci.yml
1 image: debian:10
2
3 cache:
4 when: always
5 paths:
6 - ccache
7
8 build:
9 stage: build
10 before_script:
11 - apt-get update
12 # one package per line to simplify sorting, git diff, etc.
13 - >-
14 apt-get -y install --no-install-recommends
15 binutils-powerpc64-linux-gnu
16 binutils-powerpc64le-linux-gnu
17 build-essential
18 ccache
19 git
20 libffi-dev
21 pkg-config
22 python
23 python3
24 python3-dev
25 python3-pip
26 python3-setuptools
27 python3-wheel
28 - export PATH="$HOME/.local/bin:/usr/lib/ccache:$PATH"
29 - export CCACHE_BASEDIR="$PWD"
30 - export CCACHE_DIR="$PWD/ccache"
31 - export CCACHE_COMPILERCHECK=content
32 - ccache --zero-stats || true
33 - ccache --show-stats || true
34 - python3 -m pip install --user pytest-xdist
35 script:
36 - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen
37 - pushd nmigen
38 - git rev-parse HEAD
39 - python3 setup.py develop
40 - popd
41
42 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
43 - pushd nmutil
44 - git rev-parse HEAD
45 - python3 setup.py develop
46 - popd
47
48 - git clone --depth 1 https://git.libre-soc.org/git/openpower-isa.git openpower-isa
49 - pushd openpower-isa
50 - git rev-parse HEAD
51 - python3 setup.py develop
52 - make generate &> generate.log || { cat generate.log; false; }
53 - popd
54
55 - SILENCELOG='!*,default' pytest --maxfail=5