-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcircle.yml
37 lines (33 loc) · 2.02 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
machine:
python:
version: 3.5.1
node:
version: 6.9.4
dependencies:
pre:
- sudo apt-get update && sudo apt-get install openssh-client libzmq3-dev rpm2cpio
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-x86_64.tar.gz | tar zx -C /tmp
- sudo mv /tmp/stack-1.4.0-linux-x86_64/stack /usr/bin
- curl -o /tmp/luna-manager http://packages.luna-lang.org/linux/luna-manager
- sudo mv /tmp/luna-manager /usr/bin
- chmod +x /usr/bin/luna-manager
- curl -o /tmp/luna-package.yaml http://packages.luna-lang.org/linux/studio/packageConfig.yaml
- sudo mv /tmp/luna-package.yaml /home/ubuntu/luna-package.yaml
- pip install requests
override:
- stack build --stack-yaml=build-config/backend/stack.yaml --only-dependencies --install-ghc --test --fast -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
- stack build --stack-yaml=luna-studio/stack.yaml --only-dependencies --install-ghc --fast -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
- stack build --stack-yaml=runner/stack.yaml --only-dependencies --install-ghc --fast -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
cache_directories:
- "~/.stack"
- "~/.ghcjs"
- "luna-studio/.stack-work"
- "runner/.stack-work"
compile:
override:
- stack build --stack-yaml build-config/backend/stack.yaml --copy-bins --no-run-tests --no-run-benchmarks -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
- stack build --stack-yaml luna-studio/stack.yaml --fast -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
- stack build --stack-yaml runner/stack.yaml --copy-bins --fast -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS
test:
override:
- stack build --stack-yaml build-config/backend/stack.yaml --fast --test -j1 --ghc-options=-j1 --ghc-options="+RTS -M3G -RTS" +RTS -N1 -RTS