1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-22 11:33:34 +03:00
guide/.travis.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2016-11-15 13:36:26 +03:00
sudo: true
2016-02-02 12:35:39 +03:00
language: c
addons:
apt:
packages:
2016-08-17 12:12:46 +03:00
# GHC
- libgmp-dev
2016-08-17 12:12:46 +03:00
# Selenium
- xvfb
2016-02-02 12:35:39 +03:00
cache:
directories:
- $HOME/.stack
- .stack-work
2016-02-02 12:35:39 +03:00
matrix:
include:
- env: ARGS=""
- env: ARGS="--resolver nightly"
2016-02-02 12:35:39 +03:00
allow_failures:
- env: ARGS="--resolver nightly"
2016-02-02 12:35:39 +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:
- 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:
- stack $ARGS --no-terminal --install-ghc build --test
- scripts/test-official.sh