forked from cuedo/github-webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# .travis.yml
# Used for Continuous Integration builds on Linux/OS X via https://travis-ci.org
sudo: false
language: c # default is ruby
matrix:
fast_finish: true
include:
- os: linux
env:
- STACK_PKG_URL=https://www.stackage.org/stack/linux-x86_64
- HLINT=Y
- WEEDER=Y
- os: osx
env: STACK_PKG_URL=https://www.stackage.org/stack/osx-x86_64
cache:
directories:
- $HOME/.stack
before_install:
- source .ci-scripts/travis/install-stack.sh
# Here starts the actual work to be performed for the package under test;
# any command which exits with a non-zero exit code causes the build to fail.
script:
- if [[ $HLINT ]]; then source .ci-scripts/travis/run-hlint.sh; fi
- travis_wait 45 stack --no-terminal --skip-ghc-check test --haddock --no-haddock-deps
- if [[ $WEEDER ]]; then source .ci-scripts/travis/run-weeder.sh; fi
# Build the integration examples
- travis_wait 45 stack --no-terminal --skip-ghc-check build
github-webhooks-scotty-example
github-webhooks-servant-simple-example
github-webhooks-servant-example