Skip to content

Commit

Permalink
ci_prereq.sh: split test-only part
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Feb 21, 2024
1 parent 6ae336e commit 70c36d8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
21 changes: 6 additions & 15 deletions ci_prereq.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/bin/sh

sudo apt install -y \
devscripts \
equivs \
git

sudo add-apt-repository ppa:stsp-0/nasm-segelf
sudo add-apt-repository ppa:stsp-0/thunk-gen
sudo apt update -q
sudo apt install -y \
bison \
flex \
sed \
bash \
clang \
nasm-segelf \
thunk-gen \
binutils \
pkgconf \
autoconf \
libelf-dev \
git \
diffutils
mk-build-deps --install --root-cmd sudo
3 changes: 2 additions & 1 deletion ci_setup_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ fi
sed -i -e 's/fdpp-dev,/bash,/' debian/control

# Use debian package build deps so we don't have to maintain a list here
sudo apt install devscripts equivs
sudo add-apt-repository ppa:stsp-0/dj64
sudo add-apt-repository -y ppa:dosemu2/ppa
mk-build-deps --install --root-cmd sudo

CC=clang ./default-configure -d \
Expand Down
2 changes: 2 additions & 0 deletions ci_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

. ./ci_test_prereq.sh

if [ -z "${DIR_TEST_DOSEMU}" ] ; then
echo env var "DIR_TEST_DOSEMU" is empty or missing
exit 1
Expand Down
5 changes: 5 additions & 0 deletions ci_test_prereq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

sudo apt update -q
sudo apt install -y \
diffutils

0 comments on commit 70c36d8

Please sign in to comment.