From 454490058e663f80acd5772ac95b3dda55d90baa Mon Sep 17 00:00:00 2001 From: Stelian Ionescu Date: Tue, 21 Jul 2015 02:47:04 +0200 Subject: [PATCH] Add TravisCI config file --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ install-repo.bash | 16 ++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .travis.yml create mode 100755 install-repo.bash diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d9eaa35 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +language: lisp + +env: + matrix: + - LISP=ccl + - LISP=sbcl + # - LISP=abcl # Need to have cl-travis install JNA + - LISP=cmucl + - LISP=ecl + +matrix: + allow_failures: + - env: LISP=cmucl + - env: LISP=ecl + +notifications: + email: + on_success: change + on_failure: always + irc: + channels: + - "chat.freenode.net#iolib" + on_success: change + on_failure: always + use_notice: true + skip_join: true + +install: + - if [ "$LISP" = "allegro" ]; then sudo apt-get install libc6-dev-i386 libffi-dev:i386; fi + - sudo ./install-repo.bash + - curl -L https://github.com/luismbo/cl-travis/raw/master/install.sh | sh + - cl -e "(cl:in-package :cl-user) + (dolist (p '(:trivial-features :cffi :split-sequence :idna + :bordeaux-threads :swap-bytes :fiveam)) + (ql:quickload p :verbose t))" + +script: + - cl -e "(cl:in-package :cl-user) + (ql:quickload :iolib/tests :verbose t) + (uiop:quit (if (some (lambda (x) (typep x '5am::test-failure)) + (5am:run :iolib)) + 1 0))" diff --git a/install-repo.bash b/install-repo.bash new file mode 100755 index 0000000..8e1ddb5 --- /dev/null +++ b/install-repo.bash @@ -0,0 +1,16 @@ +#!/bin/bash + +cat >> /etc/apt/sources.list <> /etc/apt/preferences <