Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
dist/
testing/*.h
cabal.sandbox.config
prelude.[ch]
qr.[ch]
qr_test.[ch]
test_bin
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sudo: false

language: c

addons:
apt:
packages:
- libgmp-dev

cache:
directories:
- $HOME/.stack/

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-components=1 -C ~/.local/bin '*/stack'

install:
- stack update
- stack setup
- stack build --only-dependencies

script:
- stack build --test

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Plover
======

[![Package version][plover-hackage-img]][plover-hackage]
[![Build status][plover-travis-img]][plover-travis]
[![Dependency status][plover-hackage-deps-img]][plover-hackage-deps]

Plover is an embedded Haskell DSL for compiling linear algebra into robust,
efficient C code suitable for running on embedded systems.

Expand Down Expand Up @@ -54,3 +58,10 @@ Usage
See
http://swift-nav.github.io/plover/guide.html

[plover-github]: https://github.com/swift-nav/plover
[plover-hackage-img]: https://img.shields.io/hackage/v/plover.svg?style=flat
[plover-hackage]: https://hackage.haskell.org/package/plover
[plover-travis-img]: https://img.shields.io/travis/swift-nav/plover/master.svg?style=flat
[plover-travis]: https://travis-ci.org/swift-nav/plover
[plover-hackage-deps-img]: https://img.shields.io/hackage-deps/v/plover.svg?style=flat
[plover-hackage-deps]: http://packdeps.haskellers.com/feed?needle=plover
4 changes: 2 additions & 2 deletions test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ testSuccess = fst
testCode v = (== v) . snd

gccCompile files outcome = do
_ <- readProcess "gcc" (files ++ ["-w", "-otest_bin"]) ""
_ <- readProcess "gcc" (files ++ ["-w", "-std=c99", "-otest_bin", "-lm"]) ""
-- ExitCode, stdout :: String, stderr :: String
(code, _, _) <- readProcessWithExitCode "test_bin" [] ""
(code, _, _) <- readProcessWithExitCode "./test_bin" [] ""

assert (testCode (Just code) outcome)

Expand Down