use new pytest config
[ieee754fpu.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
15 autoconf
16 bison
17 build-essential
18 ccache
19 clang
20 cmake
21 curl
22 flex
23 gawk
24 git
25 gperf
26 libboost-program-options-dev
27 libffi-dev
28 libftdi-dev
29 libgmp-dev
30 libmpfr-dev
31 libreadline-dev
32 mercurial
33 pkg-config
34 python
35 python3
36 python3-dev
37 python3-keyring
38 python3-pip
39 python3-setuptools
40 python3-venv
41 python3-wheel
42 tcl-dev
43 - export PATH="/usr/lib/ccache:$PATH"
44 - export CCACHE_BASEDIR="$PWD"
45 - export CCACHE_DIR="$PWD/ccache"
46 - export CCACHE_COMPILERCHECK=content
47 - ccache --zero-stats || true
48 - ccache --show-stats || true
49 - python3 -m venv --system-site-packages .venv
50 - . .venv/bin/activate
51 - pip install pytest-xdist==3.3.1 pytest==7.3.1 twine cython
52 script:
53 - . .venv/bin/activate
54
55 - IEEE754FPU_PATH="$(pwd)"
56 - git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy
57 - pushd sfpy
58 - pushd berkeley-softfloat-3
59 - git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
60 - popd
61 - pushd SoftPosit
62 - git apply ../softposit_sfpy_build.patch
63 - git apply "$IEEE754FPU_PATH"/SoftPosit.patch
64 - popd
65 - make lib -j$(nproc)
66 - make cython -j$(nproc)
67 - make wheel -j$(nproc)
68 - pip install --force-reinstall dist/sfpy*.whl
69 - popd
70
71 - git clone --depth 1 -b smtlib2-expr-support-on-0.13 https://git.libre-soc.org/git/yosys.git yosys
72 - pushd yosys
73 - git rev-parse HEAD
74 - make config-gcc
75 - make -j$(nproc)
76 - make install
77 - popd
78 - yosys -V
79
80 - git clone https://git.libre-soc.org/git/SymbiYosys.git sby
81 - pushd sby
82 - git checkout db740839b737ee55b8b39f1b29780872d32d248a
83 - make install
84 - popd
85
86 - git clone --depth 1 -b Yices-2.6.4 https://github.com/SRI-CSL/yices2.git yices2
87 - pushd yices2
88 - autoconf
89 - ./configure
90 - make -j$(nproc)
91 - make install
92 - popd
93
94 - git clone --depth 1 -b z3-4.8.17 https://github.com/Z3Prover/z3.git z3
95 - pushd z3
96 - python scripts/mk_make.py
97 - cd build
98 - make -j$(nproc)
99 - make install
100 - popd
101
102 - git clone https://github.com/bitwuzla/bitwuzla.git bitwuzla
103 - pushd bitwuzla
104 - git checkout 19dd987a6e246990619751cca07996fac505fd0b
105 - ./contrib/setup-btor2tools.sh
106 - ./contrib/setup-symfpu.sh
107 - ./contrib/setup-cadical.sh
108 - ./configure.sh
109 - cd build
110 - make -j$(nproc)
111 - make install
112 - popd
113
114 - git clone --depth 1 https://gitlab.com/nmigen/nmigen.git nmigen
115 - pushd nmigen
116 - git rev-parse HEAD
117 - python3 setup.py develop
118 - popd
119
120 - git clone --depth 1 https://git.libre-soc.org/git/nmutil.git nmutil
121 - pushd nmutil
122 - git rev-parse HEAD
123 - python3 setup.py develop
124 - popd
125
126 - git clone --depth 1 https://git.libre-soc.org/git/pytest-output-to-files.git pytest-output-to-files
127 - pushd pytest-output-to-files
128 - git rev-parse HEAD
129 - python3 setup.py develop
130 - popd
131
132 - python3 setup.py develop
133
134 - pytest -v