forked from amc-workshop/amc-workshop.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
40 lines (38 loc) · 1.36 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
37
38
39
40
machine:
pre:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 10
environment:
LANG: C.UTF-8
dependencies:
cache_directories:
- "~/.stack"
- "~/amc-workshop.github.io/site-generator/.stack-work"
pre:
- wget https://github.com/commercialhaskell/stack/releases/download/v0.1.6.0/stack-0.1.6.0-linux-x86_64.tar.gz -O /tmp/stack.tar.gz
- tar xvzf /tmp/stack.tar.gz -C /tmp
- sudo mv /tmp/stack-0.1.6.0-linux-x86_64/stack /usr/bin/stack
override:
- cd site-generator && ln -s ../ current
- cd site-generator && stack setup
- cd site-generator && stack build --jobs=4
test:
override:
- echo 0
post:
- cd site-generator && stack exec site clean
- cd site-generator && stack exec site build
- cd site-generator && stack exec site deploy
- cd site-generator && rm current
deployment:
production:
branch: master
commands:
- git config --global user.email circleci@circleci
- git config --global user.name CircleCI
- git status
- git add --all
- git commit -m "Update (`date '+%F %T %Z'`) [ci skip]"
- git push origin master