Add travis build script.

This commit is contained in:
Sam Tobin-Hochstadt 2014-12-10 09:20:05 -05:00
parent 9650129c86
commit 539c32205e

22
.travis.yml Normal file
View File

@ -0,0 +1,22 @@
language: c
env:
- PATH=~/racket/bin:$PATH
before_install:
- export PKG=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`
- echo $PKG
- curl -L -o installer.sh http://www.cs.utah.edu/plt/snapshots/current/installers/min-racket-current-x86_64-linux-precise.sh
- sh installer.sh --in-place --dest ~/racket/
install:
- racket -l- pkg/dirs-catalog --link --check-metadata pkgs-catalog .
- echo file://`pwd`/pkgs-catalog/ > catalog-config.txt
- raco pkg config catalogs >> catalog-config.txt
- raco pkg config --set catalogs `cat catalog-config.txt`
- raco pkg install --deps search-auto $PKG $PKG-test
script:
- raco test -p $PKG-test
after_script: