- Notifications
You must be signed in to change notification settings - Fork5
Add .travis.yml and test target#12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Why not use haskell-ci (which is really good), using travis for ubuntu? Unless you can have multiple travis setups for nix and non-nix builds. We could potentially test-drive typhon here for nix |
@chessai I'll check out haskell-ci tonight, bigger issue is why cabal on ubuntu doesn't respect |
noughtmare commentedNov 6, 2019
@chessai try passing the |
why is a travis build not triggering on the most recent commits? |
noughtmare commentedNov 6, 2019
@chessai It is working again, but you added |
noughtmare commentedNov 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The log shows:
I think this is because of the |
okay, configure seems to succeed now. however, hspec-discover fails. |
noughtmare commentedNov 6, 2019
Yes, I fixed that error on my machine by running |
most recent failure seems spurious (just adding hvr-ppa) |
changed |
use $WITHCOMPILER |
sorry, i keep forgetting that git with do weird things with '$'-prefixed strings. |
noughtmare commentedNov 6, 2019
Now we're seeing real errors 🎉 |
okay, the library is building, but running anything is failing with:
|
noughtmare commentedNov 6, 2019
That was fixed in#17 |
ok, rebasing |
once a build with 8.8.1 passes, i will re-add the older ghcs |
noughtmare commentedNov 6, 2019
It seems that#23 forgot to also remove the tests for the Ord instance. |
looks like this isnt getting copied in properly |
noughtmare commentedNov 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It is strange. There are two builds, pr and push, and they give different outputs: |
hmm. that is strange. |
do i need to remove the Ord tests from the test suite? |
noughtmare commentedNov 6, 2019
Yes, I think so. |
now we at least see the same error on both. |
noughtmare commentedNov 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Oh, I think I know how to fix this. Thelinux documentation of arrayfire mentions that you have to do this:
|
noughtmare commentedNov 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think that is also the reason for the ld-options field in the cabal file. So another alternative we have is putting:
back in the cabal file. (not |
we could do that. would it be better instead to do |
noughtmare commentedNov 6, 2019
Yes, that would also work. |
noughtmare commentedNov 6, 2019
I don't know if it carries over from before-install to script, but we will see. |
me either. i should probably just do it right after the arrayfire script finishes. |
failure on push is spurious. |
actually, those have to be persisting, because a lot of them are actually used during install. so i'm less worried about that. for example, if the extension to PATH to include $CABALHOME/bin didn't persist, the hspec-discover failure would still be occurring. |
extending LD_LIBRARY_PATH worked. Test suite now fails with:
Which i think is a problem with floating point arithemtic |
noughtmare commentedNov 6, 2019
🤔 |
perhaps we should add a |
Uh oh!
There was an error while loading.Please reload this page.
push failure is spurious |
chessai commentedNov 6, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
nice. it built and passed. |
added ghc 8.6.5 and 8.4.4. |
Configure fails on older ghcs/cabal 2.4. Havent looked into it. |
i am going to get arrayfire locally so i can test without travis. i don't know why configure is failing on older ghcs, but not 881 with cabal 3.0 |
noughtmare commentedNov 9, 2019
I get a similar error message in#13 (comment). |
- use haskell-ci- download arrayfire installer and unpack to /opt/arrayfire/- remove Ord tests from test suite- use shouldBeEps for comparing Array Doublenix updates- change shellHooks to use runhaskell instead of cabal-v1- extend LD_LIBRARY_PATH to include $AF_LIB- ghcid shellHook uses -fno-nocode- get tests to build and _almost_ pass
just trying to appease travis right now, because locally everything is fine. |
OK, we now have CI for GHC 8.4.4, 8.6.5, and 8.8.1.@noughtmare@dmjio please review when you have time. |
have to add back LAPACK/doctest tests |
No description provided.