mirror of
https://github.com/aelve/guide.git
synced 2024-11-30 01:23:04 +03:00
71b72e9291
It will retry a failing download automatically
40 lines
833 B
YAML
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.43/selenium-server-standalone-2.43.1.jar
|
|
- java -jar selenium-server-standalone-2.43.1.jar 2> /dev/null &
|
|
- sleep 5
|
|
|
|
script:
|
|
- stack $ARGS --no-terminal --install-ghc build --test
|