Skip to content

Commit 10af759

Browse files
Add DroneCI Support
DroneCI allows for local containerized builds. It's a new thing we're trying out so I figured I'd start by porting this beast over. I'll probably need to mess around to get matrix builds working so that we get different compilers and versions going.
1 parent 9f2342b commit 10af759

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.drone.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pipeline:
2+
build:
3+
image: ubuntu:14.04
4+
commands:
5+
# set lang for unicode support
6+
- export LC_ALL=C.UTF-8
7+
# bingehack prep
8+
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
9+
- apt-get update -qq
10+
- apt-get install -qq g++ gcc flex bison libbison-dev libjansson-dev postgresql-client libpq-dev libsdl2-dev libpng-dev
11+
# bingehack build
12+
- ./travis-build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://travis-ci.org/ComputerScienceHouse/bingehack4.png?branch=master)](https://travis-ci.org/ComputerScienceHouse/bingehack4)
2+
[![Build Status](https://drone.csh.rit.edu/api/badges/ComputerScienceHouse/bingehack4/status.svg)](https://drone.csh.rit.edu/ComputerScienceHouse/bingehack4)
23

34
# BingeHack 4 #
45

@@ -44,6 +45,7 @@ We test our client game terminal support for functionality on:
4445

4546
* [Play BingeHack4!](telnet://bingehack.csh.rit.edu)
4647
* [CSH's Travis-CI Build Server: BingeHack4 Project](https://travis-ci.org/ComputerScienceHouse/bingehack4)
48+
* [CSH's Drone Build Server: BingeHack4 Project](https://drone.csh.rit.edu/ComputerScienceHouse/bingehack4)
4749
* [BingeHack4's Wiki](https://github.com/ComputerScienceHouse/bingehack4/wiki)
4850
* [Upstream NetHack4 Git Repository](http://gitorious.org/nitrohack/ais523/commits/nicehack)
4951

travis-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ elif [[ "$BUILD_SYSTEM" == aimake ]]; then
1616
tempfile="$(mktemp)"
1717
trap "rm -f \"$tempfile\"" EXIT ERR
1818

19-
../aimake --with=server -i /tmp/bingehack4 2>&1 | tee "$tempfile"
19+
../aimake --no-sanity-checks --with=server -i /tmp/bingehack4 2>&1 | tee "$tempfile"
2020
grep -qi "fail" "$tempfile" && exit 1
2121
else
2222
echo "Unsupported build system $BUILD_SYSTEM" >&2

0 commit comments

Comments
 (0)