-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.01 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
language: haskell
sudo: false
matrix:
include:
- env: CABALVER=1.24 GHCVER=8.0.2
compiler: ": #GHC 8.0.2"
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,alex-3.1.7,happy-1.19.5], sources: [hvr-ghc]}}
before_install:
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.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'
- mv config/settings-dummy.yml config/settings.yml
# It needs to prepare GOOGLE_LOGIN_CLIENT_ID and GOOGLE_LOGIN_CLIENT_SECRET
# with Google developer console.
# Travis CI injects these variables for now.
# - mv .env-sample .env
- git submodule update --init --recursive
- cd static/css && cp ../../bootstrap-select/bootstrap-select.min.css .
- cd ../js && cp ../../bootstrap-select/bootstrap-select.min.js .
- cd ../../
install:
- stack --skip-ghc-check setup
- stack +RTS -N2 -RTS --no-terminal build
script:
- stack +RTS -N2 -RTS --no-terminal test