Skip to content

Commit 25f2dd1

Browse files
committed
Upgrade to CircleCI 2.0
1 parent e0be724 commit 25f2dd1

File tree

2 files changed

+36
-21
lines changed

2 files changed

+36
-21
lines changed

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: "ubuntu:18.04"
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
name: Restore Cached Dependencies
10+
keys:
11+
- matplotlib-haskell-{{ checksum "package.yaml" }}
12+
- run:
13+
name: System-wide dependencies
14+
command: |-
15+
apt-get install -y python3-pip python3-matplotlib python3-numpy
16+
wget -qO- https://get.haskellstack.org/ | sh
17+
- run:
18+
name: Resolve/Update Dependencies
19+
command: stack setup
20+
- run:
21+
name: Build
22+
command: |-
23+
echo "apply-ghc-options: everything" >> stack.yaml
24+
stack build --fast
25+
- run:
26+
name: Run tests
27+
command: stack test --fast
28+
- save_cache:
29+
name: Cache Dependencies
30+
key: cci-demo-haskell-v2-{{ checksum "package.yaml" }}
31+
paths:
32+
- ".stack-work"
33+
- "/root/.stack"
34+
- store_artifacts: # upload build artifact for display in CircleCi
35+
path: ~/.local/bin/circleci-demo-haskell-exe
36+
destination: matplotlib-haskell

circle.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)