git.iko.soy/typeable/postgresql-simple
on master help sign in
Regenerate .travis.yml
3389f02Oleg Grenrus
.travis.yml+10−4
@@ -1,6 +1,6 @@
1# This Travis job script has been generated by a script via
1# This Travis job script has been generated by a script via
2#
2#
3−# runghc make_travis_yml_2.hs '--output' '.travis.yml' 'postgresql-simple.cabal'
3+# runghc make_travis_yml_2.hs '--branch' 'master' '--output' '.travis.yml' 'postgresql-simple.cabal'
4#
4#
5# For more information, see https://github.com/haskell-CI/haskell-ci
5# For more information, see https://github.com/haskell-CI/haskell-ci
6#
6#
@@ -13,6 +13,10 @@ services:
13git:
13git:
14 submodules: false # whether to recursively clone submodules
14 submodules: false # whether to recursively clone submodules
15
15
16+branches:
17+ only:
18+ - master
19+
16cache:
20cache:
17 directories:
21 directories:
18 - $HOME/.cabal/packages
22 - $HOME/.cabal/packages
@@ -31,9 +35,9 @@ before_cache:
31
35
32matrix:
36matrix:
33 include:
37 include:
34− - compiler: "ghc-8.6.1"
38+ - compiler: "ghc-8.6.3"
35 # env: TEST=--disable-tests BENCH=--disable-benchmarks
39 # env: TEST=--disable-tests BENCH=--disable-benchmarks
36− addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.1], sources: [hvr-ghc]}}
40+ addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.3], sources: [hvr-ghc]}}
37 - compiler: "ghc-8.4.4"
41 - compiler: "ghc-8.4.4"
38 # env: TEST=--disable-tests BENCH=--disable-benchmarks
42 # env: TEST=--disable-tests BENCH=--disable-benchmarks
39 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.4], sources: [hvr-ghc]}}
43 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.4], sources: [hvr-ghc]}}
@@ -77,6 +81,7 @@ install:
77 - rm -fv cabal.project cabal.project.local
81 - rm -fv cabal.project cabal.project.local
78 - grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
82 - grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
79 - "printf 'packages: \".\"\\n' > cabal.project"
83 - "printf 'packages: \".\"\\n' > cabal.project"
84+ - "printf 'write-ghc-environment-files: always\\n' >> cabal.project"
80 - touch cabal.project.local
85 - touch cabal.project.local
81 - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- postgresql-simple | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
86 - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- postgresql-simple | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
82 - cat cabal.project || true
87 - cat cabal.project || true
@@ -99,6 +104,7 @@ script:
99 - cd ${DISTDIR} || false
104 - cd ${DISTDIR} || false
100 - find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
105 - find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
101 - "printf 'packages: postgresql-simple-*/*.cabal\\n' > cabal.project"
106 - "printf 'packages: postgresql-simple-*/*.cabal\\n' > cabal.project"
107+ - "printf 'write-ghc-environment-files: always\\n' >> cabal.project"
102 - touch cabal.project.local
108 - touch cabal.project.local
103 - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- postgresql-simple | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
109 - "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- postgresql-simple | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
104 - cat cabal.project || true
110 - cat cabal.project || true
@@ -119,5 +125,5 @@ script:
119 # Build without installed constraints for packages in global-db
125 # Build without installed constraints for packages in global-db
120 - if $UNCONSTRAINED; then rm -f cabal.project.local; echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
126 - if $UNCONSTRAINED; then rm -f cabal.project.local; echo cabal new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
121
127
122−# REGENDATA ["--output",".travis.yml","postgresql-simple.cabal"]
128+# REGENDATA ["--branch","master","--output",".travis.yml","postgresql-simple.cabal"]
123# EOF
129# EOF