Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
(#1) added .gitignore, .omnifmt.yaml, .stylish-haskell.yaml, .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry J. Wylde committed Mar 30, 2016
1 parent 380c77e commit dbb840c
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.stack-work/
3 changes: 3 additions & 0 deletions .omnifmt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
haskell:
extensions: ["hs"]
command: "stylish-haskell"
12 changes: 12 additions & 0 deletions .stylish-haskell.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
steps:
- imports:
align: group
- language_pragmas:
style: vertical
remove_redundant: true
- records: {}
- tabs:
spaces: 4
- trailing_whitespace: {}

columns: 100
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
sudo: false

language: c

addons:
apt:
packages:
- libgmp-dev

cache:
directories:
- $HOME/.stack/

matrix:
include:
- env: ARGS="--resolver lts"
- env: ARGS="--resolver nightly"

before_install:
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip=1 -C ~/.local/bin '*/stack'

install:
- travis_wait stack $ARGS --no-terminal --skip-ghc-check setup
- travis_wait stack $ARGS --no-terminal --skip-ghc-check test --only-snapshot
- stack --resolver lts --no-terminal --skip-ghc-check install hlint git-fmt stylish-haskell

script:
- stack $ARGS --no-terminal --skip-ghc-check test

after_script:
- hlint .
- git fmt -m dry-run --operate-on-tracked

0 comments on commit dbb840c

Please sign in to comment.