1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 04:07:14 +03:00
guide/.travis.yml
2016-09-13 01:56:47 +03:00

40 lines
833 B
YAML

sudo: false
language: c
addons:
apt:
packages:
# GHC
- libgmp-dev
# Selenium
- xvfb
cache:
directories:
- $HOME/.stack
- .stack-work
matrix:
include:
- env: ARGS=""
- env: ARGS="--resolver nightly"
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- travis_retry wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar
- java -jar selenium-server-standalone-2.53.1.jar 2> /dev/null &
- sleep 5
script:
- stack $ARGS --no-terminal --install-ghc build --test