language: haskell
ghc: 7.8

cache:
  directories:
  - $HOME/.cabal
  - $HOME/.ghc

install:
- mkdir -p ~/rust-installer ~/rust
- curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
- sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=stable -y --disable-sudo 2> /dev/null
- export PATH=$PATH:$HOME/rust/bin:$HOME/.cabal/bin
- gem install mdl
- cabal install pandoc-1.17.2

script:
- make
- make check
- make format
# Check that make format was executed before submitting.
- git diff --exit-code

language: haskell
ghc: 7.8

cache:
  directories:
  - $HOME/.cabal
  - $HOME/.ghc

install:
- mkdir -p ~/rust-installer ~/rust
- curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
- sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=stable -y --disable-sudo 2> /dev/null
- export PATH=$PATH:$HOME/rust/bin:$HOME/.cabal/bin
- gem install mdl
- cabal install pandoc-1.17.2

script:
- make
- make check
- make format
# Check that make format was executed before submitting.
- git diff --exit-code
# Check that hs-toxcore was updated.
- git clone --depth=1 https://github.com/TokTok/hs-toxcore ../hs-toxcore
- (cd ../hs-toxcore && make doc)
- git diff --exit-code

Add check to ensure hs-toxcore and spec are in sync.
Add check to ensure hs-toxcore and spec are in sync.
