Skip to content

Commit

Permalink
Move reedsolomon into a subdirectory
Browse files Browse the repository at this point in the history
The aim for this move is to extract the SIMD backend from the main
library in the future, which should ease the build infrastructure
maintenance, and allow to implement some other (optional) backend types
(like OpenCL).
  • Loading branch information
NicolasT committed Oct 20, 2016
1 parent 58a3716 commit d8f899e
Show file tree
Hide file tree
Showing 54 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ install:
- echo "" | stack build --test --only-snapshot --flag=reedsolomon:-LLVM

build_script:
- echo "" | stack exec bash -- -lc "cd /c/reedsolomon/cbits; autoreconf -vi"
- echo "" | stack exec bash -- -lc "cd /c/reedsolomon/reedsolomon/cbits; autoreconf -vi"
# Building benchmarks is temporarily disabled due to https://github.com/fpco/stackage/issues/1912
# - echo "" | stack build --pedantic --test --no-run-tests --bench --no-run-benchmarks --flag=reedsolomon:-LLVM --flag=reedsolomon:examples
- echo "" | stack build --pedantic --test --no-run-tests --flag=reedsolomon:-LLVM
Expand All @@ -35,4 +35,4 @@ test_script:
- echo "" | stack build --pedantic --test --test-arguments "--xml junit.xml +RTS -N1" --flag=reedsolomon:-LLVM

on_finish:
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\junit.xml))
- ps: (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\reedsolomon\junit.xml))
2 changes: 1 addition & 1 deletion ci/travisci/build-test-bench/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ue

pushd cbits
pushd reedsolomon/cbits
autoreconf -fvi
popd

Expand Down
2 changes: 1 addition & 1 deletion ci/travisci/cbits-cross/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xue

pushd cbits
pushd reedsolomon/cbits
autoreconf -fvi
popd

Expand Down
2 changes: 2 additions & 0 deletions ci/travisci/cbits-cross/script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -xue

cd reedsolomon

function build() {
local suffix=$1
shift
Expand Down
2 changes: 1 addition & 1 deletion ci/travisci/check-sdist/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -xue

pushd cbits
pushd reedsolomon/cbits
autoreconf -fvi
popd
4 changes: 4 additions & 0 deletions ci/travisci/check-sdist/script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -xue

pushd reedsolomon
PKG_VERSION=`grep ^Version\: reedsolomon.cabal | awk '{ print $2 }'`

pushd cbits
Expand All @@ -8,11 +9,14 @@ make distcheck
mv reedsolomon-$PKG_VERSION.tar.gz /tmp/reedsolomon-$PKG_VERSION-cbits.tar.gz
make distclean
popd
popd

cp ci/travisci/check-sdist/test.hs /tmp

git clean -dxf

cd reedsolomon

cabal sdist

PKG_TAR=reedsolomon-$PKG_VERSION.tar.gz
Expand Down
17 changes: 9 additions & 8 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ dependencies:
override:
- cabal update
- cabal sandbox init
- cabal install --constraint="template-haskell installed" --dependencies-only --enable-tests -fexamples
- cabal configure --enable-tests -fexamples
- cd reedsolomon; cabal sandbox init --sandbox `pwd`/../.cabal-sandbox
- cd reedsolomon; cabal install --constraint="template-haskell installed" --dependencies-only --enable-tests -fexamples
- cd reedsolomon; cabal configure --enable-tests -fexamples

test:
override:
- cd cbits; autoreconf -vi
- cabal build
- cabal test --show-details=always --test-options="+RTS -N2"
- cabal test --show-details=always --test-options="--xml $CIRCLE_TEST_REPORTS/junit.xml +RTS -N2"
- cd reedsolomon; cd cbits; autoreconf -vi
- cd reedsolomon; cabal build
- cd reedsolomon; cabal test --show-details=always --test-options="+RTS -N2"
- cd reedsolomon; cabal test --show-details=always --test-options="--xml $CIRCLE_TEST_REPORTS/junit.xml +RTS -N2"

post:
- cabal haddock --hyperlink-source
- mv dist/doc/html/reedsolomon/* $CIRCLE_ARTIFACTS/
- cd reedsolomon; cabal haddock --hyperlink-source
- cd reedsolomon; mv dist/doc/html/reedsolomon/* $CIRCLE_ARTIFACTS/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion reedsolomon.cabal → reedsolomon/reedsolomon.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Category: Data
Build-Type: Custom
Extra-Source-Files: README.md
, examples/README.md
, stack.yaml

, build-tools/ar-wrapper
, build-tools/ghc-wrapper
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packages:
- '.'
- reedsolomon

extra-deps:
- bytestring-mmap-0.2.2
Expand Down

0 comments on commit d8f899e

Please sign in to comment.