diff --git a/.gitattributes b/.gitattributes index 8932347..66cc47e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,5 @@ * text eol=crlf *.up -text *.UP -text +travis_*.sh text eol=lf +.travis.yml text eol=lf diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6a337d9 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/travis_build.sh b/travis_build.sh new file mode 100755 index 0000000..af850d3 --- /dev/null +++ b/travis_build.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +make all COMPILER=gcc + diff --git a/travis_test.sh b/travis_test.sh new file mode 100755 index 0000000..8f9ef4c --- /dev/null +++ b/travis_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ -f kernel/kernel.sys ] ; then + echo Kernel has been built + exit 0 +fi + +exit 1