Skip to content

Commit

Permalink
Travis: Initial build attempt
Browse files Browse the repository at this point in the history
Note: Forced Unix scripts to LF endings
  • Loading branch information
andrewbird committed Nov 12, 2019
1 parent 6be00f8 commit 806d6d6
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* text eol=crlf
*.up -text
*.UP -text
travis_*.sh text eol=lf
.travis.yml text eol=lf
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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:
- ./travis_prereq.sh

install:
- ./travis_build.sh

before_script:
- echo "before_script"

script:
- ./travis_test.sh
4 changes: 4 additions & 0 deletions travis_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

make all COMPILER=gcc

10 changes: 10 additions & 0 deletions travis_prereq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

#sudo add-apt-repository ppa:dosemu2/ppa -y
#sudo add-apt-repository ppa:stsp-0/djgpp -y
#sudo add-apt-repository ppa:tkchia/build-ia16 -y
#sudo apt-get update -q

#sudo apt-get install -y gcc-ia16-elf nasm upx

true
8 changes: 8 additions & 0 deletions travis_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ -f kernel/kernel.sys ] ; then
echo Kernel has been built
exit 0
fi

exit 1

0 comments on commit 806d6d6

Please sign in to comment.