From 51631e2d2d5b6b83f84917f36477dd79c3457ea2 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 26 Dec 2017 12:09:26 +0100 Subject: Add .circleci/config.yml --- .circleci/config.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- README.markdown | 2 +- 3 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 .travis.yml 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 ------------ -- cgit v1.2.3