-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
36 lines (36 loc) · 1.29 KB
/
circle.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
36
machine:
node:
version: 6.9.1
services:
- docker
dependencies:
cache_directories:
- "~/.cabal"
- "~/.local"
- "~/.stack"
- "node_modules"
pre:
- wget -q -O- https://s3.amazonaws.com/download.fpcomplete.com/ubuntu/fpco.key | sudo apt-key add -
- echo 'deb http://download.fpcomplete.com/ubuntu/trusty stable main'|sudo tee /etc/apt/sources.list.d/fpco.list
- sudo apt-get update
- sudo apt-get install -y jq
- sudo apt-get install -y stack
- pip install awscli
- npm install
override:
# Build index.html, which is compiled into the backend
- ./node_modules/.bin/gulp front-build-production
# Version of https://www.fpcomplete.com/blog/2016/10/static-compilation-with-stack
# to prevent static compiling issues
- sudo cp /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.orig
- sudo cp /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o
- cd src/back && stack setup
- cd src/back && stack --no-terminal install --ghc-options='-optl-static -optl-pthread -optl-static -fPIC' --force-dirty --local-bin-path .
test:
override:
- echo "No test as yet"
deployment:
production:
branch: master
commands:
- ./deploy.sh $CIRCLE_SHA1