-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcircle.yml
More file actions
37 lines (31 loc) · 1.33 KB
/
circle.yml
File metadata and controls
37 lines (31 loc) · 1.33 KB
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
36
37
machine:
ghc:
version: 7.10.1
environment:
PATH: $HOME/.cabal/bin:$CIRCLE_ARTIFACTS:$PATH:/$HOME/.cabal-sandbox/bin
dependencies:
cache_directories:
- .cabal-sandbox
- ~/.cabal/bin
- dist
override:
- "if [ ! -f /home/ubuntu/.cabal/config ]; then cabal update && echo remote-repo: hackage.plowtech.net:http://hackage.plowtech.net/packages/archive >> ~/.cabal/config; else echo .cabal/config file already exists; fi"
- if cabal --version | grep 1.23.0.0; then echo "Version 1.23.0.0"; else cd ~/ && git clone https://github.com/plow-technologies/cabal.git && cd cabal && cabal --no-require-sandbox install -j2 Cabal/ cabal-install/; fi
- git clone git@github.com:plow-technologies/plow-scripts.git
- cp plow-scripts/config $HOME/.cabal/config
- cp plow-scripts/cabal.config-lts-3.1 ./cabal.config
- cabal sandbox init
- cabal update
- cabal install --only-dependencies -j2 --enable-tests
- if [ "$CIRCLE_BRANCH" == "production" ]; then yesod configure && echo "configuring for production build"; else cabal configure -fdev && echo "configuring non-production build"; fi
test:
override:
- cabal build:
timeout: 3000
- cabal test --show-details=always:
timeout: 3000
deployment:
staging:
branch: master
commands:
- sh plow-scripts/hackage.sh