Skip to content

Commit

Permalink
Add build on Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tokenrove committed Oct 17, 2017
1 parent feb9d76 commit b98fd14
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: bash

os:
- linux
- osx

addons:
apt:
packages:
- expect
- mksh
- shellcheck

before_install:
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew update; brew install expect mksh shellcheck; fi

script:
- export CFLAGS='-std=c99 -D_POSIX_C_SOURCE -Wall -Wextra'
- ./validate bash
- ./validate mksh
- (if ./validate cat; then exit 1; fi) # travis doesn't like `- ! cmd`
- shellcheck ./validate
- (for i in stage_*/[0-9]*.t; do ./helpers/timeout 5 ./helpers/harness.tcl $i /bin/cat && exit 1; done; true)

0 comments on commit b98fd14

Please sign in to comment.