Skip to content

Commit 51631e2

Browse files
committed
Add .circleci/config.yml
1 parent d628b83 commit 51631e2

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
3+
workflows:
4+
version: 2
5+
simple-workflow:
6+
jobs:
7+
- build:
8+
filters:
9+
tags:
10+
only: /.*/
11+
12+
jobs:
13+
build:
14+
docker:
15+
- image: 'fpco/stack-build:latest'
16+
17+
steps:
18+
- checkout
19+
- restore_cache:
20+
key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}'
21+
- run:
22+
name: 'Update cabal indices'
23+
command: 'cabal update'
24+
- run:
25+
name: 'Build and install'
26+
command: 'cabal install --enable-tests --jobs=1'
27+
- run:
28+
name: 'Run tests'
29+
command: 'cabal test'
30+
- save_cache:
31+
key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
32+
paths:
33+
- '~/.cabal'
34+
- '~/.ghc'

.travis.yml

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

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
stylish-haskell
22
===============
33

4-
[![Build Status](https://secure.travis-ci.org/jaspervdj/stylish-haskell.svg?branch=master)](http://travis-ci.org/jaspervdj/stylish-haskell)
4+
[![Build Status](https://img.shields.io/circleci/project/github/jaspervdj/stylish-haskell.svg)](https://circleci.com/gh/jaspervdj/stylish-haskell)
55

66
Introduction
77
------------

0 commit comments

Comments
 (0)