Skip to content

Commit

Permalink
Stack-based build
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 24, 2016
1 parent cc07e7a commit c3c7b24
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 123 deletions.
4 changes: 0 additions & 4 deletions app/Main.hs

This file was deleted.

9 changes: 5 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

dependencies:
cache_directories:
- "~/.cabal"
- "~/.stack"
pre:
- wget -qO- https://get.haskellstack.org/ | sh
- cp ./scripts/* ~/bin/
override:
- stack setup
- stack clean
- fetch
- stack init --resolver lts-7.2
- stack build

test:
Expand All @@ -18,7 +19,7 @@ deployment:
owner: haskell-works
branch: /.*-branch/
commands:
- nox when tag autotag
- when tag autotag

hackage:
owner: haskell-works
Expand Down
Empty file removed packages.list
Empty file.
23 changes: 23 additions & 0 deletions scripts/fetch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

cabal update

mkdir -p deps

_project="$(echo *.cabal | cut -d '.' -f 1)"

pushd deps > /dev/null

cp ../$_project.cabal ./

projects() {
cabal install $_project --dry-run | grep hw- | grep -v "^${_project}-[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+$"
}

for x in $(projects); do
stack unpack $x
done

rm ./$_project.cabal

popd > /dev/null
5 changes: 0 additions & 5 deletions scripts/nix-deps

This file was deleted.

57 changes: 0 additions & 57 deletions scripts/nix-mk

This file was deleted.

42 changes: 0 additions & 42 deletions scripts/nox

This file was deleted.

Empty file modified scripts/publish
100755 → 100644
Empty file.
11 changes: 0 additions & 11 deletions stack.yaml

This file was deleted.

0 comments on commit c3c7b24

Please sign in to comment.