1# This Travis job script has been generated by a script via
3# make_travis_yml_2.hs 'hjsonpointer.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-7.10.3"
30 # env: TEST=--disable-tests BENCH=--disable-benchmarks
31 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.3], sources: [hvr-ghc]}}
32 - compiler: "ghc-8.0.2"
33 # env: TEST=--disable-tests BENCH=--disable-benchmarks
34 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
35 - compiler: "ghc-8.2.2"
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
38 - compiler: "ghc-8.4.1"
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
40 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
44 - HCPKG=${HC/ghc/ghc-pkg}
46 - PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
47 - PKGNAME='hjsonpointer'
51 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
52 - BENCH=${BENCH---enable-benchmarks}
53 - TEST=${TEST---enable-tests}
54 - HADDOCK=${HADDOCK-true}
55 - INSTALLED=${INSTALLED-true}
56 - travis_retry cabal update -v
57 - sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
58 - rm -fv cabal.project.local
59 - "echo 'packages: .' > cabal.project"
60 - rm -f cabal.project.freeze
61 - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
62 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all
64# Here starts the actual work to be performed for the package under test;
65# any command which exits with a non-zero exit code causes the build to fail.
67 - if [ -f configure.ac ]; then autoreconf -i; fi
68 - rm -rf .ghc.environment.* dist/
69 - cabal sdist # test that a source-distribution can be generated
71 - SRCTAR=(${PKGNAME}-*.tar.gz)
72 - SRC_BASENAME="${SRCTAR/%.tar.gz}"
73 - tar -xvf "./$SRC_BASENAME.tar.gz"
75## from here on, CWD is inside the extracted source-tarball
76 - rm -fv cabal.project.local
77 - "echo 'packages: .' > cabal.project"
78 # this builds all libraries and executables (without tests/benchmarks)
79 - rm -f cabal.project.freeze
80 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
81 # this builds all libraries and executables (including tests/benchmarks)
82 # - rm -rf ./dist-newstyle
84 # Build with installed constraints for packages in global-db
86 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;
87 else echo "Not building with installed constraints"; fi
89 # build & run tests, build benchmarks
90 - cabal new-build -w ${HC} ${TEST} ${BENCH} all
91 - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} all; fi
94 - rm -rf ./dist-newstyle
95 - if $HADDOCK; then cabal new-haddock -w ${HC} --disable-tests --disable-benchmarks all; else echo "Skipping haddock generation";fi
97# REGENDATA ["hjsonpointer.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