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
|
2017-08-13 15:59:57 +03:00
|
|
|
chrome: stable
|
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
|
|
|
|
2017-11-01 23:07:43 +03:00
|
|
|
- wget http://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip
|
2016-11-15 13:36:26 +03:00
|
|
|
- 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
|
2017-11-01 23:07:43 +03:00
|
|
|
- travis_retry wget http://selenium-release.storage.googleapis.com/3.6/selenium-server-standalone-3.6.0.jar
|
|
|
|
- java -jar selenium-server-standalone-3.6.0.jar 2> /dev/null &
|
2017-01-31 04:15:40 +03:00
|
|
|
- sleep 15
|
2016-08-17 12:12:46 +03:00
|
|
|
|
2016-02-02 12:35:39 +03:00
|
|
|
script:
|
2017-08-13 19:40:43 +03:00
|
|
|
- scripts/buildjs.sh
|
2016-08-17 11:18:57 +03:00
|
|
|
- stack $ARGS --no-terminal --install-ghc build --test
|
2017-01-31 03:54:23 +03:00
|
|
|
- scripts/test-official.sh $ARGS
|
2017-01-31 03:18:33 +03:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
secure: BgQpUYFmvXrf7HVBP/fefS/8UVwES800+fT+ufgJX8b2HMx2FvaWVsdv3ErKAryLE0B3fwmvforWugTdgLO3kq66YUgSt51SNQOBLkMVGubIoQsgvr3Ernu+Wpw1DyoMkXQH9q9O9rfCIc4IwkQCEHqu5SVRqdOd5px/CHFl/ktTI22JkT8ap/Be53qjlB2U2sWUf4GxYXq0V/gGF6fDwsUwTVKFb14RfSDrOgK5Vlce2GRf3gNr1C/j7A7EHIR/Z+rNd2hvv69cFw6TRc3s39QmP8XPe3SLZPIHTZ8vRveX1SZioMeEy747r5rHd9vylEjxWtVHhvP9fOt693+woXa8ZAl5uVRgB6S4mTWLZ+LAbqhaCmDGJYr9GrrBMoqWvJiMuBX3ZvHptsAc6O2l/fxZQU3otTE++SmHkhbyoDQkcPCjXPDUi/ZlnoLc5zfMAfApcsZZ8b9t47z12H0O4uDZd2YiNPiQJ1iUA6R879LH3pcxPB3RaoWsfXzv/klkKrU/V2K4SXD9j4/bmAFArlig+dar+Dm44L/a3/G7vbU1lQIa1bG0EqB36qgUS3UCkuy2ppti/JTHpkYx7HVF2BipoCjOVvfBl9G8RkvcQIhyuCfOGm7WL1TjrKVMccIEGJKhm7OO6wOZYCBfAI5zILxi8XEJAIvBm9NywhQlwxI=
|