diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c25aed8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +sudo: false +language: c +env: VERBOSE=1 + +addons: + apt: + packages: + - build-essential + - pkg-config + - libncursesw5-dev + - libslang2-dev + - libx11-dev + - libimlib2-dev + - freeglut3-dev + # FIXME: disable this for now, as it just outputs garbage + #- texlive-fonts-recommended + #- doxygen-latex + - ruby1.8-dev + +before_install: + - .travis/before_install.sh + - ./bootstrap + +os: + - linux + - osx + +compiler: + - gcc + - clang + diff --git a/.travis/before_install.sh b/.travis/before_install.sh new file mode 100755 index 0000000..f6ab0ba --- /dev/null +++ b/.travis/before_install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if brew --version 2>/dev/null 2>&1; then + # FIXME: no ncurses formula for now; also add ruby + brew install slang doxygen +fi + diff --git a/Makefile.am b/Makefile.am index beb3f9e..29bd893 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,6 +30,9 @@ update-fonts: tools/makefont tools/makefont mono9 "Monospace 9" 96 4 >| $(srcdir)/caca/mono9.data tools/makefont monobold12 "Monospace Bold 12" 96 4 >| $(srcdir)/caca/monobold12.data +# Travis CI uses “make test” instead of “make check” +test: check + echo-dirs: ; echo caca kernel src cxx examples ruby python tools FORCE: