From 9bc6083e49a165ae93fae7293fb72688224c6f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 10 Apr 2017 22:10:26 +0100 Subject: [PATCH] Add Travis CI configuration file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- .travis-deps.sh | 13 +++++++++++++ .travis.yml | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 .travis-deps.sh create mode 100644 .travis.yml diff --git a/.travis-deps.sh b/.travis-deps.sh new file mode 100755 index 00000000..9699f84e --- /dev/null +++ b/.travis-deps.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ $TRAVIS_OS_NAME = "osx" ]; then + brew update + brew install libpng pkg-config +else # linux + sudo apt-get -qq update + sudo apt-get install -y -q bison flex libpng-dev pkg-config +fi + +echo "Dependencies:" +yacc --version +flex --version diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..db889db5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: c +sudo: required +install: + - ./.travis-deps.sh +os: + - linux + - osx +compiler: + - clang + - gcc +script: + - make + - sudo make install +after_success: + - pushd test/asm/ && ./test.sh && popd + - pushd test/link/ && ./test.sh && popd