on master help sign in
update travis and appveyor config
d1cf131Harendra Kumar
.travis.yml+79−48
@@ -1,81 +1,96 @@
1notifications:
1notifications:
2 email: false
2 email: false
3
3
4−language: c
5−
6−sudo: false
7−cache:
8− directories:
9− - $HOME/.cabal
10− - $HOME/.ghc
11− - $HOME/.local
12− - $HOME/.stack
13−
14matrix:
4matrix:
15 include:
5 include:
16− # cabal/linux
17− # cabal build for GHC 7.10.3 hangs
18− #- env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22
19− #addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3], sources: [hvr-ghc]}}
20
6
21− - env: BUILD=stack RESOLVER=lts-6.35 STACK_YAML=stack-7.10.yaml STACK_BUILD_OPTIONS="--flag streamly:examples-sdl" CABALVER=1.22
7+ # --------------------------------------------------------------------------
22− addons: {apt: {packages: [libgmp-dev,cabal-install-1.22,libsdl1.2-dev], sources: [hvr-ghc]}}
8+ # Linux/cabal builds
9+ # cabal builds require pre-installed cabal-install and ghc
10+ # --------------------------------------------------------------------------
23
11
24− # stack/linux use a pre-installed cabal-install for faster builds
12+ # Note COVERALLS (hpc-coveralls) requires cabal build. Sends the coverage
25− # GHC 8.0.1
13+ # info for the test suite named "test" to coveralls.io using hpc-coveralls.
26− - env: BUILD=stack RESOLVER=lts-7.24 STACK_YAML=stack-8.0.yaml STACK_BUILD_OPTIONS="--flag streamly:examples-sdl" CABALVER=1.24
14+ - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines --exclude-dir=test test"
27− addons: {apt: {packages: [libgmp-dev,cabal-install-1.24,libsdl1.2-dev], sources: [hvr-ghc]}}
15+ addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
28
16
29− - env: BUILD=stack RESOLVER=lts-9.16 STACK_BUILD_OPTIONS="--flag streamly:examples-sdl" CABALVER=1.24
17+ # --------------------------------------------------------------------------
30− addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,libsdl1.2-dev], sources: [hvr-ghc]}}
18+ # Linux/stack builds
19+ # --------------------------------------------------------------------------
31
20
32− # Note COVERALLS (hpc-coveralls) requires cabal build
21+ # GHC 7.10.3
33− - env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 COVERALLS=y
22+ - env: BUILD=stack RESOLVER=lts-6.35 STACK_YAML=stack-7.10.yaml STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
34− addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
23+ addons: {apt: {packages: [libgmp-dev,libsdl1.2-dev]}}
35
24
36− #- env: BUILD=cabal GHCVER=head CABALVER=head
25+ # GHC 8.0.2
26+ - env: BUILD=stack RESOLVER=lts-9.20 STACK_YAML=stack-8.0.yaml STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
37− # addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
27+ addons: {apt: {packages: [libsdl1.2-dev]}}
38
28
29+ # GHC 8.2.2
39− - env: BUILD=stack RESOLVER=nightly CABALVER=2.0
30+ - env: BUILD=stack RESOLVER=lts-10.0 STACK_BUILD_OPTIONS="--flag streamly:examples-sdl"
40− addons: {apt: {packages: [libgmp-dev,cabal-install-2.0], sources: [hvr-ghc]}}
31+ addons: {apt: {packages: [libsdl1.2-dev]}}
41
32
42− #- env: BUILD=cabal GHCVER=head CABALVER=head
33+ # Nightly
43− # addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
34+ - env: BUILD=stack RESOLVER=nightly
44
35
45− # cabal/stack/osx - TODO install cabal-install
36+ # --------------------------------------------------------------------------
37+ # OS X builds
38+ # --------------------------------------------------------------------------
39+
46− # GHC 8.0.1
40+ # GHC 8.2.2/cabal
47− - env: BUILD=cabal RESOLVER=lts-7.24
41+ - env: BUILD=cabal RESOLVER=lts-10.0
48 os: osx
42 os: osx
49
43
50− # GHC 8.0.2
44+ # GHC 8.2.2/stack
51− - env: BUILD=stack RESOLVER=lts-9.16
45+ - env: BUILD=stack RESOLVER=lts-10.0
52 os: osx
46 os: osx
53
47
48+ # --------------------------------------------------------------------------
49+ # Lint
50+ # --------------------------------------------------------------------------
51+
52+ - env: BUILD=stack RESOLVER=lts-10.0 HLINT_OPTIONS="."
53+
54+ # --------------------------------------------------------------------------
55+ # Builds that are allowed to fail
56+ # --------------------------------------------------------------------------
57+
54 allow_failures:
58 allow_failures:
55− - env: BUILD=stack RESOLVER=nightly CABALVER=2.0
59+ - env: BUILD=stack RESOLVER=nightly
56− #- env: BUILD=cabal GHCVER=head CABALVER=head
60+ - env: BUILD=stack RESOLVER=lts-10.0 HLINT_OPTIONS="."
57
61
58−install: true
59script:
62script:
60 - |
63 - |
61− # Customizable options
64+ # ------------------------------------------------------------------------
62− PACKAGE_TEST_VER="7fe14f616d05d69de25a46002668a8509b6257a5"
65+ # You can customize these to desired values
66+ # ------------------------------------------------------------------------
67+
68+ # The commit id of the package-test script to use
69+ PACKAGE_TEST_VER="1a4de26422ee296f0811e032bec922123f019963"
63 GHC_OPTIONS="-O0 -Werror"
70 GHC_OPTIONS="-O0 -Werror"
64− test -n "$COVERALLS" && \
65− COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines \
66− --exclude-dir=test test"
67
71
72+ # ------------------------------------------------------------------------
68− # Usually no changes should be needed after this
73+ # Normally no customizations should be needed this point onwards
74+ # ------------------------------------------------------------------------
75+
76+ # Where to find the package-test.sh script
77+ pkg_test() { echo https://raw.githubusercontent.com/harendra-kumar/package-test/$1/package-test.sh; }
78+
79+ # When GHCVER or CABALVER env variables are specified, modify the path to
80+ # find the binaries installed from hvr-ghc repo
69 add_path() { eval "test -n \"\$$1\"" && eval "PATH=/opt/$2/\"\$$1\"/bin:$PATH"; true; }
81 add_path() { eval "test -n \"\$$1\"" && eval "PATH=/opt/$2/\"\$$1\"/bin:$PATH"; true; }
82+
83+ # Emit the value of the var specified as arg only when the build is cabal
70 cabal_env() { test "$BUILD" = cabal && echo $1; }
84 cabal_env() { test "$BUILD" = cabal && echo $1; }
71− pkg_test() { echo https://raw.githubusercontent.com/harendra-kumar/package-test/$1/package-test.sh; }
72
85
73 CURL=$(which curl)
86 CURL=$(which curl)
74 PATH=/bin:/usr/bin
87 PATH=/bin:/usr/bin
75 add_path GHCVER ghc
88 add_path GHCVER ghc
76 add_path CABALVER cabal
89 add_path CABALVER cabal
77
90
91+ # We start with a clean environment (env -i) and specify all the
92+ # environment variables explicitly. TRAVIS vars are needed by
78− # TRAVIS vars are needed by hpc-coveralls
93+ # hpc-coveralls.
79 - env -i
94 - env -i
80 LC_ALL=C.UTF-8
95 LC_ALL=C.UTF-8
81 TRAVIS=$TRAVIS
96 TRAVIS=$TRAVIS
@@ -84,7 +99,7 @@ script:
84 BUILD=$BUILD
99 BUILD=$BUILD
85 RESOLVER=$RESOLVER
100 RESOLVER=$RESOLVER
86 STACK_UPGRADE=y
101 STACK_UPGRADE=y
87− STACK_YAML=$STACK_YAML
102+ STACK_YAML="$STACK_YAML"
88 STACK_BUILD_OPTIONS="$STACK_BUILD_OPTIONS"
103 STACK_BUILD_OPTIONS="$STACK_BUILD_OPTIONS"
89 GHCVER=$GHCVER
104 GHCVER=$GHCVER
90 GHC_OPTIONS="$GHC_OPTIONS"
105 GHC_OPTIONS="$GHC_OPTIONS"
@@ -95,4 +110,20 @@ script:
95 $(cabal_env CABAL_CHECK_RELAX=y)
110 $(cabal_env CABAL_CHECK_RELAX=y)
96 $(cabal_env CABAL_NO_SANDBOX=y)
111 $(cabal_env CABAL_NO_SANDBOX=y)
97 $(cabal_env CABAL_HACKAGE_MIRROR=hackage.haskell.org:http://hackage.fpcomplete.com)
112 $(cabal_env CABAL_HACKAGE_MIRROR=hackage.haskell.org:http://hackage.fpcomplete.com)
113+ HLINT_OPTIONS="$HLINT_OPTIONS"
98 /bin/bash <($CURL -sL $(pkg_test $PACKAGE_TEST_VER))
114 /bin/bash <($CURL -sL $(pkg_test $PACKAGE_TEST_VER))
115+
116+install: true
117+language: c
118+
119+# ------------------------------------------------------------------------
120+# Build caching
121+# ------------------------------------------------------------------------
122+
123+sudo: false
124+cache:
125+ directories:
126+ - $HOME/.cabal
127+ - $HOME/.ghc
128+ - $HOME/.local
129+ - $HOME/.stack
appveyor.yml+2−2
@@ -8,7 +8,7 @@ clone_folder: "c:\\pkg"
8environment:
8environment:
9 global:
9 global:
10 BUILD: "stack"
10 BUILD: "stack"
11− RESOLVER: "lts-9.0"
11+ RESOLVER: "lts-10.0"
12 GHC_OPTIONS: "-O0 -Werror"
12 GHC_OPTIONS: "-O0 -Werror"
13 STACK_UPGRADE: "y"
13 STACK_UPGRADE: "y"
14# STACK_OPTIONS: "-v"
14# STACK_OPTIONS: "-v"
@@ -18,7 +18,7 @@ environment:
18 PATH: "%PATH%;%APPDATA%\\local\\bin"
18 PATH: "%PATH%;%APPDATA%\\local\\bin"
19 CABAL_REINIT_CONFIG: "y"
19 CABAL_REINIT_CONFIG: "y"
20 TEST_INSTALL: "y"
20 TEST_INSTALL: "y"
21− PACKAGE_TEST_VER: "7fe14f616d05d69de25a46002668a8509b6257a5"
21+ PACKAGE_TEST_VER: "1a4de26422ee296f0811e032bec922123f019963"
22
22
23cache:
23cache:
24 - "%STACK_ROOT%" # stack root
24 - "%STACK_ROOT%" # stack root
stack-8.0.yaml+2−6
@@ -1,17 +1,13 @@
1−resolver: lts-7.24
1+resolver: lts-9.20
2packages:
2packages:
3- '.'
3- '.'
4extra-deps:
4extra-deps:
5 - lockfree-queue-0.2.3.1
5 - lockfree-queue-0.2.3.1
6 - simple-conduit-0.6.0
6 - simple-conduit-0.6.0
7− - transient-0.4.4
8− - monad-recorder-0.1.0
9− - http-conduit-2.2.2
10− - http-client-0.5.0
11− - http-client-tls-0.3.0
12 - SDL-0.6.5.1
7 - SDL-0.6.5.1
13flags: {}
8flags: {}
14extra-package-dbs: []
9extra-package-dbs: []
10+rebuild-ghc-options: true
15# For mac ports installed SDL library on Mac OS X
11# For mac ports installed SDL library on Mac OS X
16#extra-include-dirs:
12#extra-include-dirs:
17#- /opt/local/include
13#- /opt/local/include
stack.yaml+1−3
@@ -1,9 +1,7 @@
1−#resolver: lts-9.2
1+resolver: lts-10.0
2−resolver: nightly-2017-09-07
3packages:
2packages:
4- '.'
3- '.'
5extra-deps:
4extra-deps:
6− - lockfree-queue-0.2.3.1
7 - simple-conduit-0.6.0
5 - simple-conduit-0.6.0
8 - SDL-0.6.5.1
6 - SDL-0.6.5.1
9flags: {}
7flags: {}
streamly.cabal+1−2
@@ -23,7 +23,7 @@ homepage: https://github.com/composewell/streamly
23bug-reports: https://github.com/composewell/streamly/issues
23bug-reports: https://github.com/composewell/streamly/issues
24license: BSD3
24license: BSD3
25license-file: LICENSE
25license-file: LICENSE
26−tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.1
26+tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
27author: Harendra Kumar
27author: Harendra Kumar
28maintainer: harendra.kumar@gmail.com
28maintainer: harendra.kumar@gmail.com
29copyright: 2017 Harendra Kumar
29copyright: 2017 Harendra Kumar
@@ -36,7 +36,6 @@ extra-source-files:
36 Changelog.md
36 Changelog.md
37 README.md
37 README.md
38 stack-7.10.yaml
38 stack-7.10.yaml
39− stack-8.0.yaml
40 stack.yaml
39 stack.yaml
41
40
42source-repository head
41source-repository head