Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 7a97438

Browse files
committed
Add travis support.
1 parent 6f26736 commit 7a97438

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
dist/
44
testing/*.h
55
cabal.sandbox.config
6+
prelude.[ch]
7+
qr.[ch]
8+
qr_test.[ch]
9+
test_bin

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
sudo: false
2+
3+
language: c
4+
5+
addons:
6+
apt:
7+
packages:
8+
- libgmp-dev
9+
10+
cache:
11+
directories:
12+
- $HOME/.stack/
13+
14+
before_install:
15+
- mkdir -p ~/.local/bin
16+
- export PATH=~/.local/bin:$PATH
17+
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
18+
19+
install:
20+
- stack update
21+
- stack setup
22+
- stack build --only-dependencies
23+
24+
script:
25+
- stack build --test
26+

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Plover
22
======
33

4+
[![Package version][plover-hackage-img]][plover-hackage]
5+
[![Build status][plover-travis-img]][plover-travis]
6+
[![Dependency status][plover-hackage-deps-img]][plover-hackage-deps]
7+
48
Plover is an embedded Haskell DSL for compiling linear algebra into robust,
59
efficient C code suitable for running on embedded systems.
610

@@ -54,3 +58,10 @@ Usage
5458
See
5559
http://swift-nav.github.io/plover/guide.html
5660

61+
[plover-github]: https://github.com/swift-nav/plover
62+
[plover-hackage-img]: https://img.shields.io/hackage/v/plover.svg?style=flat
63+
[plover-hackage]: https://hackage.haskell.org/package/plover
64+
[plover-travis-img]: https://img.shields.io/travis/swift-nav/plover/master.svg?style=flat
65+
[plover-travis]: https://travis-ci.org/swift-nav/plover
66+
[plover-hackage-deps-img]: https://img.shields.io/hackage-deps/v/plover.svg?style=flat
67+
[plover-hackage-deps]: http://packdeps.haskellers.com/feed?needle=plover

test/Main.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ testSuccess = fst
2323
testCode v = (== v) . snd
2424

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

3030
assert (testCode (Just code) outcome)
3131

0 commit comments

Comments
 (0)