summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2017-12-26 12:09:26 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2017-12-26 12:34:33 +0100
commit51631e2d2d5b6b83f84917f36477dd79c3457ea2 (patch)
treecda6ff2fa16a15dac9f1908280d307aefafcff2d
parentd628b839ef072611693b50b0ae1c57eba4ade8a6 (diff)
downloadstylish-haskell-51631e2d2d5b6b83f84917f36477dd79c3457ea2.tar.gz
Add .circleci/config.yml
-rw-r--r--.circleci/config.yml34
-rw-r--r--.travis.yml19
-rw-r--r--README.markdown2
3 files changed, 35 insertions, 20 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..47e30b8
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,34 @@
+version: 2
+
+workflows:
+ version: 2
+ simple-workflow:
+ jobs:
+ - build:
+ filters:
+ tags:
+ only: /.*/
+
+jobs:
+ build:
+ docker:
+ - image: 'fpco/stack-build:latest'
+
+ steps:
+ - checkout
+ - restore_cache:
+ key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}'
+ - run:
+ name: 'Update cabal indices'
+ command: 'cabal update'
+ - run:
+ name: 'Build and install'
+ command: 'cabal install --enable-tests --jobs=1'
+ - run:
+ name: 'Run tests'
+ command: 'cabal test'
+ - save_cache:
+ key: 'v1-stylish-haskell-{{ arch }}-{{ .Branch }}-{{ .Revision }}'
+ paths:
+ - '~/.cabal'
+ - '~/.ghc'
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 5e5c816..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-sudo: false
-language: c # Choose a lightweight base image
-
-cache:
- directories:
- - $HOME/.stack
-
-addons:
- apt:
- packages:
- - libgmp-dev
-
-before_install:
-- mkdir -p ~/.local/bin
-- export PATH=$HOME/.local/bin:$PATH
-- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
-
-script:
-- stack --no-terminal test
diff --git a/README.markdown b/README.markdown
index 7191059..4ee7679 100644
--- a/README.markdown
+++ b/README.markdown
@@ -1,7 +1,7 @@
stylish-haskell
===============
-[![Build Status](https://secure.travis-ci.org/jaspervdj/stylish-haskell.svg?branch=master)](http://travis-ci.org/jaspervdj/stylish-haskell)
+[![Build Status](https://img.shields.io/circleci/project/github/jaspervdj/stylish-haskell.svg)](https://circleci.com/gh/jaspervdj/stylish-haskell)
Introduction
------------