on master help sign in
update ci configs
commitfbfa2aa33074efa69deee0792fe105eaa5a2b36e authorHarendra Kumar <harendra.kumar@gmail.com> dateThu 15 Mar 2018, 23:20 (9 years ago) parentf5a21bc
2 files changed+37−20
.travis.yml+28−17 appveyor.yml+9−3
.travis.yml+28−17
@@ -6,13 +6,19 @@ env:
66 # Global options used for all CI tests
77 # ------------------------------------------------------------------------
88 - GHC_OPTIONS="-Werror"
9+
910 # ------------------------------------------------------------------------
10− # Options for builds that need stack
11+ # Options for builds that need stack (note, cabal builds can use stack)
1112 # ------------------------------------------------------------------------
13+ # Note requiring a specific version of stack using STACKVER may fail due to
14+ # github API limit while checking and upgrading/downgrading to the specific
15+ # version.
1216 #- STACKVER="1.6.5"
1317 - STACK_UPGRADE="y"
18+
1419 # ------------------------------------------------------------------------
1520 # Other options: Normally you would not need to customize these
21+ # Note - these are used by both stack and cabal builds
1622 # ------------------------------------------------------------------------
1723 - CABAL_REINIT_CONFIG=y
1824 - CABAL_CHECK_RELAX=y
@@ -21,6 +27,7 @@ env:
2127 - TEST_INSTALL=y
2228 - PATH=/bin:/usr/bin
2329 - LC_ALL=C.UTF-8
30+
2431 # ------------------------------------------------------------------------
2532 # Location of packcheck.sh (the shell script invoked to perform CI tests ).
2633 # ------------------------------------------------------------------------
@@ -32,15 +39,15 @@ env:
3239 # If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
3340 # then it is automatically pulled from this URL.
3441 - PACKCHECK_GITHUB_URL="https://raw.githubusercontent.com/harendra-kumar/packcheck"
35− - PACKCHECK_GITHUB_COMMIT="da9d6da3d18d6250c06617817f0879324c75c224"
42+ - PACKCHECK_GITHUB_COMMIT="437800a90f3b469b04768af068094d2ac582f351"
3643
3744notifications:
3845 email: false
3946
40−# This matrix has total 11 builds enabled, 4 builds each (3 last major compiler
41−# versions and head) for stack and cabal, 2 OSX builds (stack and cabal for
42−# latest compiler version), and one hlint build. You may want to comment out
43−# some of the builds to be lighter on the CI infrastructure.
47+# This matrix has total of 6 builds enabled, we try to cover last three major
48+# GHC versions, stack, cabal, Linux and OSX with minimum number of builds
49+# possible. You can uncomment other disabled builds or comment out existing
50+# ones to your taste.
4451#
4552# We pre-install the cabal-install package to not incur the penalty of building
4653# it the first time in cached builds or every time in uncached builds.
@@ -57,7 +64,7 @@ matrix:
5764 - env: BUILD=stack CABALVER=1.24 GHCVER=8.0.2 RESOLVER=lts-9 STACK_YAML=stack-8.0.yaml STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
5865 addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,libsdl1.2-dev], sources: [hvr-ghc]}}
5966
60− - env: BUILD=stack CABALVER=2.0 GHCVER=8.2.2 RESOLVER=lts-10 STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
67+ - env: BUILD=stack CABALVER=2.0 GHCVER=8.2.2 RESOLVER=lts-11 STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
6168 addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,libsdl1.2-dev], sources: [hvr-ghc]}}
6269
6370 # Nightly
@@ -68,21 +75,25 @@ matrix:
6875
6976 # You can customize a stack build even without a custom stack-yaml
7077 # using STACK_OPTIONS, STACK_BUILD_OPTIONS, GHC_OPTIONS etc.
71− #- env: BUILD=stack RESOLVER=lts-10.0 STACK_BUILD_OPTIONS="--flag packcheck:dev"
78+ #- env: BUILD=stack RESOLVER=lts-11 STACK_BUILD_OPTIONS="--flag packcheck:dev"
7279
7380 # --------------------------------------------------------------------------
74− # (Linux) cabal builds require pre-installed cabal-install and ghc
81+ # (Linux) cabal builds
7582 # --------------------------------------------------------------------------
7683
7784 #- env: BUILD=cabal CABALVER=1.22 GHCVER=7.10.3
7885 # addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
7986
80− - env: BUILD=cabal CABALVER=1.24 GHCVER=8.0.2
81− addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
87+ #- env: BUILD=cabal CABALVER=1.24 GHCVER=8.0.2
88+ # addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
8289
90+ # Consider that we do an 8.2.2 cabal build for OSX, see below
8391 #- env: BUILD=cabal CABALVER=2.0 GHCVER=8.2.2
8492 # addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2], sources: [hvr-ghc]}}
8593
94+ - env: BUILD=cabal CABALVER=2.2 GHCVER=8.4.1
95+ addons: {apt: {packages: [cabal-install-2.2,ghc-8.4.1], sources: [hvr-ghc]}}
96+
8697 - env: BUILD=cabal CABALVER=head GHCVER=head
8798 addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
8899
@@ -91,18 +102,18 @@ matrix:
91102 # --------------------------------------------------------------------------
92103
93104 # GHC 8.2.2/cabal build via stack
94− #- env: BUILD=cabal RESOLVER=lts-10
95− # os: osx
105+ - env: BUILD=cabal RESOLVER=lts-11
106+ os: osx
96107
97108 # GHC 8.2.2/stack
98− - env: BUILD=stack RESOLVER=lts-10
99− os: osx
109+ #- env: BUILD=stack RESOLVER=lts-11
110+ # os: osx
100111
101112 # --------------------------------------------------------------------------
102113 # Lint
103114 # --------------------------------------------------------------------------
104115
105− - env: BUILD=stack RESOLVER=lts-10 HLINT_COMMANDS="hlint lint ."
116+ - env: BUILD=stack RESOLVER=lts-11 HLINT_COMMANDS="hlint lint ."
106117
107118 # --------------------------------------------------------------------------
108119 # Build and send coverage report to coveralls.io using hpc-coveralls
@@ -120,7 +131,7 @@ matrix:
120131 allow_failures:
121132 - env: BUILD=stack RESOLVER=nightly
122133 - env: BUILD=cabal CABALVER=head GHCVER=head
123− - env: BUILD=stack RESOLVER=lts-10 HLINT_COMMANDS="hlint lint ."
134+ - env: BUILD=stack RESOLVER=lts-11 HLINT_COMMANDS="hlint lint ."
124135
125136# ------------------------------------------------------------------------
126137# Settings beyond this point are advanced and normally not tweaked
appveyor.yml+9−3
@@ -6,12 +6,17 @@ environment:
66 # Global options used for all CI tests
77 # ------------------------------------------------------------------------
88 GHC_OPTIONS: "-Werror"
9+
910 # ------------------------------------------------------------------------
10− # Options for builds that need stack
11+ # Options for builds that need stack (note, cabal builds can use stack)
1112 # ------------------------------------------------------------------------
13+ # Note requiring a specific version of stack using STACKVER may fail due to
14+ # github API limit while checking and upgrading/downgrading to the specific
15+ # version.
1216 #STACKVER: "1.6.5"
1317 STACK_UPGRADE: "y"
14− RESOLVER: "lts-10.0"
18+ RESOLVER: "lts-11.0"
19+
1520 # ------------------------------------------------------------------------
1621 # Normally you would not need to customize these params
1722 # ------------------------------------------------------------------------
@@ -24,6 +29,7 @@ environment:
2429 PATH: "%PATH%;%APPDATA%\\local\\bin"
2530 STACK_ROOT: "c:\\sr"
2631 LOCAL_BIN: "%APPDATA%\\local\\bin"
32+
2733 # ------------------------------------------------------------------------
2834 # Location of packcheck.sh (the shell script invoked to perform CI tests ).
2935 # ------------------------------------------------------------------------
@@ -35,7 +41,7 @@ environment:
3541 # If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
3642 # then it is automatically pulled from this URL.
3743 PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/harendra-kumar/packcheck"
38− PACKCHECK_GITHUB_COMMIT: "da9d6da3d18d6250c06617817f0879324c75c224"
44+ PACKCHECK_GITHUB_COMMIT: "437800a90f3b469b04768af068094d2ac582f351"
3945
4046cache:
4147 - "%STACK_ROOT%"