Skip to content

Commit

Permalink
Merge pull request pjd#19 from yaneurabeya/travis-integration
Browse files Browse the repository at this point in the history
Add necessary integration pieces for Travis CI
  • Loading branch information
asomers authored Apr 4, 2017
2 parents 9f74a0d + f8d02e3 commit 93004fa
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: c
sudo: required

matrix:
include:
- os: linux
compiler: clang
dist: xenial
- os: linux
compiler: gcc
dist: xenial

script:
- ./travis/build.sh
- ./travis/test.sh
6 changes: 6 additions & 0 deletions travis/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e

cd $(dirname $0)/..
make
27 changes: 27 additions & 0 deletions travis/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh

set -ex

cd $(dirname $0)/..

df .
uname -a

case "$(uname)" in
Darwin)
sw_vers -productVersion
mount
;;
FreeBSD)
mount -p
;;
Linux)
for release_file in /etc/lsb-release /etc/os-release; do
echo "$release_file.. ->"
cat $release_file
done
mount
;;
esac

sudo prove -rv .

0 comments on commit 93004fa

Please sign in to comment.