mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-25 23:04:57 +02:00
Travis: Build and test with both GCC and Watcom
Watcom compiler is downloaded and extracted if necessary. On Travis this will be always, but if you build locally multiple times using ./travis_build, it will use the previous watcom installation. [fixes #18]
This commit is contained in:
parent
65e0101c17
commit
5ecfdd572c
@ -1,4 +1,30 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
make all COMPILER=gcc
|
if [ -z "${TRAVIS_BUILD_DIR}" ] ; then
|
||||||
|
TRAVIS_BUILD_DIR=$(pwd)
|
||||||
|
fi
|
||||||
|
echo TRAVIS_BUILD_DIR is \"${TRAVIS_BUILD_DIR}\"
|
||||||
|
|
||||||
|
# Output directory
|
||||||
|
rm -rf _output
|
||||||
|
mkdir _output
|
||||||
|
|
||||||
|
# GCC
|
||||||
|
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
||||||
|
make all COMPILER=gcc
|
||||||
|
mv -i bin/KGC*.map bin/KGC*.sys _output/.
|
||||||
|
|
||||||
|
# Watcom
|
||||||
|
if [ ! -d _watcom ] ; then
|
||||||
|
[ -f ow-snapshot.tar.gz ] || wget https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.gz
|
||||||
|
|
||||||
|
mkdir _watcom
|
||||||
|
(cd _watcom && tar -xf ../ow-snapshot.tar.gz)
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PATH=$TRAVIS_BUILD_DIR/bin:$PATH:$TRAVIS_BUILD_DIR/_watcom/binl64
|
||||||
|
export WATCOM=$TRAVIS_BUILD_DIR/_watcom
|
||||||
|
|
||||||
|
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
||||||
|
make all COMPILER=owlinux
|
||||||
|
mv -i bin/KWC*.map bin/KWC*.sys _output/.
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -f kernel/kernel.sys ] ; then
|
KVER=8632
|
||||||
echo Kernel has been built
|
|
||||||
exit 0
|
if [ ! -f _output/KGC${KVER}.sys ] ; then
|
||||||
|
echo GCC built kernel not present
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 1
|
if [ ! -f _output/KWC${KVER}.sys ] ; then
|
||||||
|
echo Watcom built kernel not present
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo GCC and Watcom kernels have all been built
|
||||||
|
ls -l _output/K*
|
||||||
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user