run testsuite in CI
This commit is contained in:
parent
6e408f4b82
commit
6d27e4088a
@ -83,11 +83,10 @@ This package provides the Haskell %{pkg_name} profiling library.
|
|||||||
# End cabal-rpm setup
|
# End cabal-rpm setup
|
||||||
#remove the copy library
|
#remove the copy library
|
||||||
rm -r cbits
|
rm -r cbits
|
||||||
%if %{with tests}
|
# upperbounds
|
||||||
cabal-tweak-remove-upperbound tasty
|
cabal-tweak-dep-ver tasty '< 0.12' '< 1.3'
|
||||||
cabal-tweak-remove-upperbound tasty-hunit
|
cabal-tweak-dep-ver tasty-hunit '< 0.10' '< 0.11'
|
||||||
cabal-tweak-remove-upperbound tasty-quickcheck
|
cabal-tweak-dep-ver tasty-quickcheck '== 0.8.*' '> 0.8'
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
11
tests/simple/runtest.sh
Executable file
11
tests/simple/runtest.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/sh
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
SOURCEDIR=$1
|
||||||
|
|
||||||
|
cd "${SOURCEDIR}" || exit 1
|
||||||
|
|
||||||
|
cabal update
|
||||||
|
cabal install --enable-tests --only-dependencies
|
||||||
|
|
||||||
|
cabal test
|
20
tests/tests.yaml
Normal file
20
tests/tests.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-source
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- cabal-install
|
||||||
|
- ghc-tasty-hunit-devel
|
||||||
|
- ghc-tasty-quickcheck-devel
|
||||||
|
- ghc-zlib-devel
|
||||||
|
tests:
|
||||||
|
- simple:
|
||||||
|
dir: simple
|
||||||
|
run: ./runtest.sh {{ tenv_workdir }}/source/
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user