Skip to content

Commit 44bf1ae

Browse files
committed
add travis
1 parent ca3e1c7 commit 44bf1ae

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
travis.yml

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# adventofcode-rb-2016
22

3+
[![Build Status](https://travis-ci.org/petertseng/adventofcode-rb-2016.svg?branch=master)](https://travis-ci.org/petertseng/adventofcode-rb-2016)
4+
35
I'm reluctantly doing [Advent of Code](http://adventofcode.com) again.
46

57
I say "reluctantly" because I got dragged into it by a friend midway through last year, and felt the need to follow through.

travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: ruby
2+
rvm:
3+
- '2.4'
4+
- '2.3'
5+
matrix:
6+
allow_failures:
7+
- rvm: '2.3'
8+
script: |
9+
bad=""
10+
for f in *.rb; do
11+
if ! ruby -c $f; then
12+
bad="$bad $f"
13+
fi
14+
done
15+
if [ -n "$bad" ]; then
16+
echo "bad: $bad"
17+
exit 1
18+
fi

0 commit comments

Comments
 (0)