1# This Travis job script has been generated by a script via
3# make_travis_yml_2.hs 'cabal2nix.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.1"
30 # env: TEST=--disable-tests BENCH=--disable-benchmarks
31 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.1], 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-7.10.3"
36 # env: TEST=--disable-tests BENCH=--disable-benchmarks
37 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-7.10.3], sources: [hvr-ghc]}}
38 - compiler: "ghc-8.0.1"
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
40 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.1], sources: [hvr-ghc]}}
41 - compiler: "ghc-8.0.2"
42 # env: TEST=--disable-tests BENCH=--disable-benchmarks
43 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.0.2], sources: [hvr-ghc]}}
44 - compiler: "ghc-8.2.1"
45 # env: TEST=--disable-tests BENCH=--disable-benchmarks
46 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.1], sources: [hvr-ghc]}}
51 - PATH=/opt/ghc/bin:/opt/ghc-ppa-tools/bin:$PATH
56 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
57 - BENCH=${BENCH---enable-benchmarks}
58 - TEST=${TEST---enable-tests}
59 - travis_retry cabal update -v
60 - sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
61 - rm -fv cabal.project.local
62 - "echo 'packages: .' > cabal.project"
63 - rm -f cabal.project.freeze
64 - cabal new-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all
65 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all
67# Here starts the actual work to be performed for the package under test;
68# any command which exits with a non-zero exit code causes the build to fail.
70 - if [ -f configure.ac ]; then autoreconf -i; fi
71 - rm -rf .ghc.environment.* dist/
72 - cabal sdist # test that a source-distribution can be generated
74 - SRCTAR=(${PKGNAME}-*.tar.gz)
75 - SRC_BASENAME="${SRCTAR/%.tar.gz}"
76 - tar -xvf "./$SRC_BASENAME.tar.gz"
78## from here on, CWD is inside the extracted source-tarball
79 - rm -fv cabal.project.local
80 - "echo 'packages: .' > cabal.project"
81 # this builds all libraries and executables (without tests/benchmarks)
82 - rm -f cabal.project.freeze
83 - cabal new-build -w ${HC} --disable-tests --disable-benchmarks all
84 # this builds all libraries and executables (including tests/benchmarks)
85 # - rm -rf ./dist-newstyle
88 - cabal new-build -w ${HC} ${TEST} ${BENCH} all
89 - 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