mirror of
https://github.com/aelve/guide.git
synced 2024-11-22 20:01:36 +03:00
[travis] Break into two phases
This commit is contained in:
parent
28513326b4
commit
07067a0842
62
.travis.yml
62
.travis.yml
@ -17,37 +17,43 @@ cache:
|
|||||||
- .stack-work
|
- .stack-work
|
||||||
timeout: 1000
|
timeout: 1000
|
||||||
|
|
||||||
matrix:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- env: ARGS=""
|
- stage: "Build dependencies"
|
||||||
- env: ARGS="--resolver nightly"
|
before_script:
|
||||||
|
- 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'
|
||||||
|
script:
|
||||||
|
- stack --no-terminal --install-ghc test --no-run-tests --dependencies-only
|
||||||
|
|
||||||
allow_failures:
|
- stage: "Build and test the project"
|
||||||
- env: ARGS="--resolver nightly"
|
before_script:
|
||||||
|
# Install Stack
|
||||||
before_install:
|
- mkdir -p ~/.local/bin
|
||||||
- mkdir -p ~/.local/bin
|
- export PATH=$HOME/.local/bin:$PATH
|
||||||
- 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'
|
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 |
|
||||||
|
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||||
- wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
|
# Install chromedriver
|
||||||
- unzip chromedriver_linux64.zip
|
- wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
|
||||||
- chmod +x chromedriver
|
- unzip chromedriver_linux64.zip
|
||||||
- sudo mv -f chromedriver /usr/local/share/chromedriver
|
- chmod +x chromedriver
|
||||||
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
- sudo mv -f chromedriver /usr/local/share/chromedriver
|
||||||
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
||||||
|
- sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
|
||||||
before_script:
|
# Run selenium-server
|
||||||
- sh -e /etc/init.d/xvfb start
|
- sh -e /etc/init.d/xvfb start
|
||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- travis_retry wget http://selenium-release.storage.googleapis.com/3.6/selenium-server-standalone-3.6.0.jar
|
- 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 &
|
- java -jar selenium-server-standalone-3.6.0.jar 2> /dev/null &
|
||||||
- sleep 15
|
- sleep 15
|
||||||
|
script:
|
||||||
script:
|
|
||||||
- scripts/buildjs.sh
|
- scripts/buildjs.sh
|
||||||
- stack $ARGS --no-terminal --install-ghc build --test -j2
|
- stack --no-terminal test
|
||||||
- scripts/test-official.sh $ARGS
|
- scripts/test-official.sh
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
|
Loading…
Reference in New Issue
Block a user