1# This Travis job script has been generated by a script via
3# make_travis_yml_2.hs 'hjsonschema.cabal'
5# For more information, see https://github.com/hvr/multi-ghc-travis
11 submodules: false # whether to recursively clone submodules
15 - $HOME/.cabal/packages
19 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
20 # remove files that are regenerated by 'cabal update'
21 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
22 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
23 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
24 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
25 - rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx
29 - compiler: "ghc-8.0.2"
30 # env: TEST=--disable-tests BENCH=--disable-benchmarks
31 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
32 - compiler: "ghc-8.2.2"
33 # env: TEST=--disable-tests BENCH=--disable-benchmarks
34 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
35 - compiler: "ghc-8.4.1"
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
41 - HCPKG=${HC/ghc/ghc-pkg}
43 - PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
44 - PKGNAME='hjsonschema'
48 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
49 - BENCH=${BENCH---enable-benchmarks}
50 - TEST=${TEST---enable-tests}
51 - HADDOCK=${HADDOCK-true}
52 - INSTALLED=${INSTALLED-true}
53 - travis_retry cabal update -v
54 - sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
55 - rm -fv cabal.project.local
56 - "echo 'packages: .' > cabal.project"
57 - rm -f cabal.project.freeze
58 - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
59 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all
61# Here starts the actual work to be performed for the package under test;
62# any command which exits with a non-zero exit code causes the build to fail.
64 - if [ -f configure.ac ]; then autoreconf -i; fi
65 - rm -rf .ghc.environment.* dist/
66 - cabal sdist # test that a source-distribution can be generated
68 - SRCTAR=(${PKGNAME}-*.tar.gz)
69 - SRC_BASENAME="${SRCTAR/%.tar.gz}"
70 - tar -xvf "./$SRC_BASENAME.tar.gz"
72## from here on, CWD is inside the extracted source-tarball
73 - rm -fv cabal.project.local
74 - "echo 'packages: .' > cabal.project"
75 # this builds all libraries and executables (without tests/benchmarks)
76 - rm -f cabal.project.freeze
77 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
78 # this builds all libraries and executables (including tests/benchmarks)
79 # - rm -rf ./dist-newstyle
81 # Build with installed constraints for packages in global-db
83 echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks $(${HCPKG} list --global --simple-output --names-only | sed 's/\([a-zA-Z0-9-]\{1,\}\) */--constraint="\1 installed" /g') all | sh;
84 else echo "Not building with installed constraints"; fi
86 # build & run tests, build benchmarks
87 - cabal new-build -w ${HC} ${TEST} ${BENCH} all
88 - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} all; fi
91 - rm -rf ./dist-newstyle
92 - if $HADDOCK; then cabal new-haddock -w ${HC} --disable-tests --disable-benchmarks all; else echo "Skipping haddock generation";fi
94# REGENDATA ["hjsonschema.cabal"]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list