git.iko.soy/typeable/generic-arbitrary
on 1.0.1 help sign in
147 lines 8.0 kB history raw
1# This Travis job script has been generated by a script via
2#
3# haskell-ci 'generic-arbitrary.cabal' '--output' '.travis.yml'
4#
5# For more information, see https://github.com/haskell-CI/haskell-ci
6#
7# version: 0.9.20200406
8#
9version: ~> 1.0
10language: c
11os: linux
12dist: xenial
13git:
14 # whether to recursively clone submodules
15 submodules: false
16cache:
17 directories:
18 - $HOME/.cabal/packages
19 - $HOME/.cabal/store
20 - $HOME/.hlint
21before_cache:
22 - rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
23 # remove files that are regenerated by 'cabal update'
24 - rm -fv $CABALHOME/packages/hackage.haskell.org/00-index.*
25 - rm -fv $CABALHOME/packages/hackage.haskell.org/*.json
26 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.cache
27 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
28 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
29 - rm -rfv $CABALHOME/packages/head.hackage
30jobs:
31 include:
32 - compiler: ghc-8.10.1
33 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.10.1","cabal-install-3.2"]}}
34 os: linux
35 - compiler: ghc-8.6.5
36 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.6.5","cabal-install-3.2"]}}
37 os: linux
38 - compiler: ghc-8.4.1
39 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.4.1","cabal-install-3.2"]}}
40 os: linux
41 - compiler: ghc-8.2.2
42 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.2.2","cabal-install-3.2"]}}
43 os: linux
44 - compiler: ghc-8.0.2
45 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.0.2","cabal-install-3.2"]}}
46 os: linux
47 - compiler: ghc-7.10.3
48 addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-7.10.3","cabal-install-3.2"]}}
49 os: linux
50before_install:
51 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
52 - WITHCOMPILER="-w $HC"
53 - HADDOCK=$(echo "/opt/$CC/bin/haddock" | sed 's/-/\//')
54 - HCPKG="$HC-pkg"
55 - unset CC
56 - CABAL=/opt/ghc/bin/cabal
57 - CABALHOME=$HOME/.cabal
58 - export PATH="$CABALHOME/bin:$PATH"
59 - TOP=$(pwd)
60 - "HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\d+)\\.(\\d+)\\.(\\d+)(\\.(\\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
61 - echo $HCNUMVER
62 - CABAL="$CABAL -vnormal+nowrap"
63 - set -o pipefail
64 - TEST=--enable-tests
65 - BENCH=--enable-benchmarks
66 - HEADHACKAGE=false
67 - rm -f $CABALHOME/config
68 - |
69 echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
70 echo "remote-build-reporting: anonymous" >> $CABALHOME/config
71 echo "write-ghc-environment-files: always" >> $CABALHOME/config
72 echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
73 echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
74 echo "world-file: $CABALHOME/world" >> $CABALHOME/config
75 echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
76 echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
77 echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
78 echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
79 echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
80 echo "install-dirs user" >> $CABALHOME/config
81 echo " prefix: $CABALHOME" >> $CABALHOME/config
82 echo "repository hackage.haskell.org" >> $CABALHOME/config
83 echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
84install:
85 - ${CABAL} --version
86 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
87 - |
88 echo "program-default-options" >> $CABALHOME/config
89 echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
90 - cat $CABALHOME/config
91 - rm -fv cabal.project cabal.project.local cabal.project.freeze
92 - travis_retry ${CABAL} v2-update -v
93 # Generate cabal.project
94 - rm -rf cabal.project cabal.project.local cabal.project.freeze
95 - touch cabal.project
96 - |
97 echo "packages: ." >> cabal.project
98 - if [ $HCNUMVER -ge 80200 ] ; then echo 'package generic-arbitrary' >> cabal.project ; fi
99 - "if [ $HCNUMVER -ge 80200 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
100 - |
101 - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(generic-arbitrary)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
102 - cat cabal.project || true
103 - cat cabal.project.local || true
104 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
105 - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
106 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
107 - rm cabal.project.freeze
108 - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
109 - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
110 - travis_wait 40 ${CABAL} v2-install $WITHCOMPILER --disable-tests --disable-benchmarks -j2 tasty-discover
111script:
112 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
113 # Packaging...
114 - ${CABAL} v2-sdist all
115 # Unpacking...
116 - mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
117 - cd ${DISTDIR} || false
118 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
119 - find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
120 - PKGDIR_generic_arbitrary="$(find . -maxdepth 1 -type d -regex '.*/generic-arbitrary-[0-9.]*')"
121 # Generate cabal.project
122 - rm -rf cabal.project cabal.project.local cabal.project.freeze
123 - touch cabal.project
124 - |
125 echo "packages: ${PKGDIR_generic_arbitrary}" >> cabal.project
126 - if [ $HCNUMVER -ge 80200 ] ; then echo 'package generic-arbitrary' >> cabal.project ; fi
127 - "if [ $HCNUMVER -ge 80200 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
128 - |
129 - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(generic-arbitrary)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
130 - cat cabal.project || true
131 - cat cabal.project.local || true
132 # Building...
133 # this builds all libraries and executables (without tests/benchmarks)
134 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
135 # Building with tests and benchmarks...
136 # build & run tests, build benchmarks
137 - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
138 # cabal check...
139 - (cd ${PKGDIR_generic_arbitrary} && ${CABAL} -vnormal check)
140 # haddock...
141 - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
142 # Building without installed constraints for packages in global-db...
143 - rm -f cabal.project.local
144 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
146# REGENDATA ("0.9.20200406",["generic-arbitrary.cabal","--output",".travis.yml"])
147# EOF