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-7.8.4"
30 # env: TEST=--disable-tests BENCH=--disable-benchmarks
31 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.8.4], sources: [hvr-ghc]}}
32 - compiler: "ghc-7.10.2"
33 # env: TEST=--disable-tests BENCH=--disable-benchmarks
34 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.2], sources: [hvr-ghc]}}
35 - compiler: "ghc-8.0.1"
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.1], sources: [hvr-ghc]}}
42 - PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
43 - PKGNAME='hjsonschema'
47 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
48 - BENCH=${BENCH---enable-benchmarks}
49 - TEST=${TEST---enable-tests}
50 - travis_retry cabal update -v
51 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
52 - rm -fv cabal.project.local
53 - "echo 'packages: .' > cabal.project"
54 - rm -f cabal.project.freeze
55 - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
56 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all
58# Here starts the actual work to be performed for the package under test;
59# any command which exits with a non-zero exit code causes the build to fail.
61 - if [ -f configure.ac ]; then autoreconf -i; fi
63 - cabal sdist # test that a source-distribution can be generated
65 - SRCTAR=(${PKGNAME}-*.tar.gz)
66 - SRC_BASENAME="${SRCTAR/%.tar.gz}"
67 - tar -xvf "./$SRC_BASENAME.tar.gz"
69## from here on, CWD is inside the extracted source-tarball
70 - rm -fv cabal.project.local
71 - "echo 'packages: .' > cabal.project"
72 # this builds all libraries and executables (without tests/benchmarks)
73 - rm -f cabal.project.freeze
74 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
75 # this builds all libraries and executables (including tests/benchmarks)
76 # - rm -rf ./dist-newstyle
79 - cabal new-build -w ${HC} ${TEST} ${BENCH} all
80 - if [ "x$TEST" = "x--enable-tests" ]; then cabal new-test -w ${HC} ${TEST} all; fi
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