on master help sign in
Simplify .travis.yml
commit87de32f14c54326c81e01b8ab1f31a371a19d87d authorEvan Czaplicki <info@elm-lang.org> dateMon 1 Jun 2015, 17:58 (11 years ago) parent4b2af4a
1 file changed+3−18
.travis.yml+3−18
.travis.yml+3−18
@@ -24,23 +24,8 @@ install:
2424 - cabal --version
2525 - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
2626 - travis_retry cabal update
27− - cabal install --only-dependencies --enable-tests --enable-benchmarks
28−
29−# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
30−script:
27+ - cabal install --only-dependencies
3128 - if [ -f configure.ac ]; then autoreconf -i; fi
32− - cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
33− - cabal build # this builds all libraries and executables (including tests/benchmarks)
29+ - cabal configure --enable-tests -v2 # -v2 provides useful information for debugging
30+ - cabal build
3431 - cabal test
35− - cabal check
36− - cabal sdist # tests that a source-distribution can be generated
37−
38−# The following scriptlet checks that the resulting source distribution can be built & installed
39− - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
40− cd dist/;
41− if [ -f "$SRC_TGZ" ]; then
42− cabal install --force-reinstalls "$SRC_TGZ";
43− else
44− echo "expected '$SRC_TGZ' not found";
45− exit 1;
46− fi