Skip to content
JVS2 Forever
Haskell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
data
src
.gitignore
.travis.yml
HLint.hs
LICENSE
Makefile
README.md
Setup.hs
kibr.cabal

README.md

Kibr Build Status

Development Environment

Prerequisites

Fedora

I have verified that these packages are enough to build the project on Fedora 16:

$ sudo yum install ghc cabal-dev happy pcre-devel

Debian/Ubuntu

I have verified that these steps are enough to build the project on Ubuntu Server 11.10:

$ sudo apt-get install make ghc cabal-install happy libpcre3-dev
$ cabal update
$ export PATH="$HOME/.cabal/bin:$PATH"  # should go in ~/.bashrc too
$ cabal install cabal-dev

Workflow

Note: some changes require passing -B to make, for example if you've added a dependency to Cabal or edited the fixtures.

Automated Verification

$ make
  1. Run cabal check
  2. If needed, set up a cabal-dev environment and install the dependencies into it
  3. Build the application
  4. Run the tests

Web Application

$ make http
  1. Build the application
  2. If needed, import the fixtures to the database
  3. Launch the HTTP server on localhost:8000
$ make watch
  1. Run make http and wait for changes to files tracked by Git
  2. Kill the HTTP server and start over at step one

This requires inotify-tools:

$ sudo {yum,apt-get} install inotify-tools

IRC Bot

$ make irc
  1. Build the application
  2. If needed, import the fixtures to the database
  3. Connect to freenode and join #sampla
Something went wrong with that request. Please try again.