forked from haskell-repa/repa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:DDCSF/repa
- Loading branch information
Showing
18 changed files
with
261 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.stack-work | ||
/stack.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule ".travis"] | ||
path = .travis | ||
url = https://github.com/tmcdonell/travis-scripts.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,101 @@ | ||
# vim: nospell | ||
language: minimal | ||
sudo: false | ||
# | ||
# Basic template to test with GHC=[7.8, 7.10, 8.0]. | ||
# Caches the 'stack' build directory to speed subsequent compilations. | ||
# | ||
language: generic | ||
dist: trusty | ||
sudo: required # not really, but these instances have more memory | ||
|
||
cache: | ||
timeout: 600 | ||
directories: | ||
- $HOME/.stack | ||
- $HOME/llvm | ||
- .stack-work/install | ||
|
||
before_cache: | ||
- rm -vrf $(stack path --local-install-root)/bin | ||
|
||
addons: | ||
apt: | ||
sources: &apt_sources | ||
- hvr-ghc | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-trusty | ||
- llvm-toolchain-precise-3.5 | ||
# - llvm-toolchain-precise-3.6 | ||
- llvm-toolchain-precise-3.7 | ||
# - llvm-toolchain-precise-3.8 | ||
# - llvm-toolchain-precise-3.9 | ||
# - llvm-toolchain-precise-4.0 # not white-listed yet | ||
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main' | ||
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' | ||
|
||
packages: &apt_packages | ||
- alex-3.1.7 | ||
- g++-4.8 | ||
- gcc-4.8 | ||
- happy-1.19.5 | ||
- libedit-dev | ||
- libgmp-dev | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- env: GHC=7.10.3 LLVM=3.5 CABAL=1.22 | ||
- env: GHC=7.10.3 CABAL=1.22 LLVM=3.5.1 | ||
compiler: "GHC 7.10" | ||
addons: | ||
apt: | ||
sources: | ||
- hvr-ghc | ||
- llvm-toolchain-precise-3.5 | ||
- ubuntu-toolchain-r-test | ||
sources: *apt_sources | ||
packages: | ||
- ghc-7.10.3 | ||
- *apt_packages | ||
- cabal-install-1.22 | ||
- happy-1.19.5 | ||
- alex-3.1.4 | ||
- llvm-3.5-dev | ||
- libedit-dev | ||
- gcc-4.8 | ||
- g++-4.8 | ||
|
||
- env: GHC=head LLVM=3.7 CABAL=1.24 | ||
compiler: "GHC HEAD" | ||
- env: GHC=8.0.2 CABAL=1.24 LLVM=3.7.1 | ||
compiler: "GHC 8.0" | ||
addons: | ||
apt: | ||
sources: | ||
- hvr-ghc | ||
- llvm-toolchain-precise-3.7 | ||
- ubuntu-toolchain-r-test | ||
sources: *apt_sources | ||
packages: | ||
- ghc-head | ||
- *apt_packages | ||
- cabal-install-1.24 | ||
- happy-1.19.5 | ||
- alex-3.1.4 | ||
- llvm-3.7-dev | ||
- libedit-dev | ||
- gcc-4.8 | ||
- g++-4.8 | ||
|
||
allow_failures: | ||
- env: GHC=head LLVM=3.7 CABAL=1.24 | ||
- env: GHC=8.2.1 CABAL=2.0 LLVM=4.0.1 | ||
compiler: "GHC 8.2" | ||
addons: | ||
apt: | ||
sources: *apt_sources | ||
packages: | ||
- *apt_packages | ||
- cabal-install-2.0 | ||
- llvm-4.0-dev | ||
|
||
before_install: | ||
- export PATH=/opt/ghc/$GHC/bin:/opt/cabal/$CABAL/bin:/opt/alex/3.1.4/bin:/opt/happy/1.19.5/bin:/usr/lib/llvm-$LLVM/bin:$PATH | ||
|
||
# cabal | ||
- travis_retry cabal update | ||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config | ||
|
||
# stack | ||
- mkdir $HOME/bin | ||
- export PATH=$HOME/bin:$PATH | ||
- travis_retry curl -L "https://www.stackage.org/stack/linux-x86_64" | gunzip | tar -x | ||
- mv stack-*/stack $HOME/bin | ||
- travis_retry stack setup | ||
- travis_retry stack install hscolour | ||
- export PATH=/opt/cabal/$CABAL/bin:/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$HOME/.cabal/bin:$PATH | ||
- source .travis/install-stack.sh | ||
|
||
install: | ||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]" | ||
- stack --version | ||
- echo "$(stack exec ghc -- --version) [$(stack exec ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]" | ||
- cabal --version | ||
- opt --version; true | ||
- stack --version | ||
- llc --version; true | ||
- opt --version; true | ||
- | | ||
if [ ${GHC} == head ]; then | ||
travis_retry cabal install --only-dependencies --allow-newer ./repa ./repa-io ./repa-algorithms ./repa-examples | ||
if [ ${GHC} == head -o ! -e stack.yaml ]; then | ||
travis_retry cabal install --only-dependencies || exit 1 | ||
else | ||
travis_retry stack build --only-dependencies --no-terminal --no-haddock-deps -j2 | ||
travis_retry stack build --only-dependencies --fast --no-terminal --no-haddock-deps --ghc-options="-j +RTS -A128M -n4m -RTS" || exit 1 | ||
fi | ||
script: | ||
- | | ||
if [ ${GHC} == head ]; then | ||
cabal install --allow-newer ./repa ./repa-io ./repa-algorithms ./repa-examples | ||
if [ ${GHC} == head -o ! -e stack.yaml ]; then | ||
travis_retry cabal install || exit 1 | ||
travis_retry cabal haddock || exit 1 | ||
else | ||
stack build --no-terminal --haddock --no-haddock-deps | ||
travis_retry stack build --fast --no-terminal --haddock --no-haddock-deps --ghc-options="-j +RTS -A128M -n4m -RTS" || exit 1 | ||
fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
repa | ||
==== | ||
|
||
[![Build Status](https://travis-ci.org/DDCSF/repa.svg?branch=master)](https://travis-ci.org/DDCSF/repa) | ||
[![Build Status](https://travis-ci.org/tmcdonell/repa.svg?branch=master)](https://travis-ci.org/tmcdonell/repa) | ||
|
||
Repa provides high performance, regular, multi-dimensional, shape polymorphic parallel arrays. | ||
All numeric data is stored unboxed. Functions written with the Repa combinators are automatically | ||
parallel provided you supply +RTS -Nwhatever on the command line when running the program. | ||
|
||
* Home page and bug tracker are on a [separate site](http://repa.ouroborus.net/). | ||
|
||
* PULL REQUESTS: If you want your pull request merged then send email to benl AT ouroborus.net. I don't pay attention to github notifications, but am happy to receive emails from people. | ||
* PULL REQUESTS: If you want your pull request merged then send email to benl AT ouroborus.net. I don't pay attention to github notifications, but am happy to receive emails from people. Before raising your pull request make sure *all* the packages still build and that the examples still work. | ||
|
||
* If you just want to bump a dependency version then get a package maintainer or Hackage trustee to edit the package information directly on Hackage. You don't need to raise a pull request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.