1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-30 01:23:04 +03:00
guide/.travis.yml
Artyom 71b72e9291 Use travis_retry in the Travis script
It will retry a failing download automatically
2016-09-01 02:15:45 +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.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