2016-11-15 13:36:26 +03:00
|
|
|
sudo: true
|
2016-02-02 12:35:39 +03:00
|
|
|
|
2016-08-17 11:18:57 +03:00
|
|
|
language: c
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-08-17 12:12:46 +03:00
|
|
|
# GHC
|
2016-08-17 11:18:57 +03:00
|
|
|
- libgmp-dev
|
2016-08-17 12:12:46 +03:00
|
|
|
# Selenium
|
|
|
|
- xvfb
|
2016-08-17 11:18:57 +03:00
|
|
|
|
2016-02-02 12:35:39 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
2016-08-17 11:18:57 +03:00
|
|
|
- $HOME/.stack
|
|
|
|
- .stack-work
|
2016-02-02 12:35:39 +03:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2016-08-17 11:18:57 +03:00
|
|
|
- env: ARGS=""
|
|
|
|
- env: ARGS="--resolver nightly"
|
2016-02-02 12:35:39 +03:00
|
|
|
|
2016-08-17 11:18:57 +03:00
|
|
|
allow_failures:
|
|
|
|
- env: ARGS="--resolver nightly"
|
2016-02-02 12:35:39 +03:00
|
|
|
|
2016-08-17 11:18:57 +03:00
|
|
|
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'
|
2016-02-02 12:35:39 +03:00
|
|
|
|
2016-11-15 13:36:26 +03:00
|
|
|
- wget http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip
|
|
|
|
- unzip chromedriver_linux64.zip
|
|
|
|
- chmod +x chromedriver
|
|
|
|
- sudo mv -f chromedriver /usr/local/share/chromedriver
|
|
|
|
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
|
|
|
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
|
|
|
|
2016-08-17 12:12:46 +03:00
|
|
|
before_script:
|
2016-09-01 02:15:45 +03:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- export DISPLAY=:99.0
|
2016-09-10 00:17:34 +03:00
|
|
|
- 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 &
|
2016-08-17 12:12:46 +03:00
|
|
|
- sleep 5
|
|
|
|
|
2016-02-02 12:35:39 +03:00
|
|
|
script:
|
2016-08-17 11:18:57 +03:00
|
|
|
- stack $ARGS --no-terminal --install-ghc build --test
|
2017-01-31 01:06:50 +03:00
|
|
|
- scripts/test-official.sh
|