Travis: Initial build attempt

Note: Forced Unix scripts to LF endings
This commit is contained in:
Andrew Bird 2019-11-12 10:19:30 +00:00 committed by Kenneth J Davis
parent a2ad348ed8
commit 687f31fdae
4 changed files with 41 additions and 0 deletions

2
.gitattributes vendored
View File

@ -1,3 +1,5 @@
* text eol=crlf
*.up -text
*.UP -text
travis_*.sh text eol=lf
.travis.yml text eol=lf

27
.travis.yml Normal file
View File

@ -0,0 +1,27 @@
language: c
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:dosemu2/ppa'
- sourceline: 'ppa:stsp-0/djgpp'
- sourceline: 'ppa:tkchia/build-ia16'
packages:
- gcc-ia16-elf
- nasm
- upx
update: true
before_install:
- echo "before_install"
install:
- ./travis_build.sh
before_script:
- echo "before_script"
script:
- ./travis_test.sh

4
travis_build.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
make all COMPILER=gcc

8
travis_test.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
if [ -f kernel/kernel.sys ] ; then
echo Kernel has been built
exit 0
fi
exit 1