Skip to content

Commit 345d226

Browse files
committed
Merge remote-tracking branch 'origin/stable' into rc/v1.6.1
2 parents 87d0578 + 086929d commit 345d226

File tree

4 files changed

+51
-12
lines changed

4 files changed

+51
-12
lines changed

doc/appveyor.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
build: off
2+
3+
before_test:
4+
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
5+
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
6+
7+
- curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-x86_64
8+
- 7z x stack.zip stack.exe
9+
10+
clone_folder: "c:\\stack"
11+
environment:
12+
global:
13+
STACK_ROOT: "c:\\sr"
14+
15+
test_script:
16+
- stack setup > nul
17+
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
18+
# descriptor
19+
- echo "" | stack --no-terminal test

doc/travis-complex.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@ matrix:
4444
#- env: BUILD=cabal GHCVER=7.4.2 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7
4545
# compiler: ": #GHC 7.4.2"
4646
# addons: {apt: {packages: [cabal-install-1.16,ghc-7.4.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
47-
- env: BUILD=cabal GHCVER=7.6.3 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7
48-
compiler: ": #GHC 7.6.3"
49-
addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
50-
- env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 HAPPYVER=1.19.5 ALEXVER=3.1.7
51-
compiler: ": #GHC 7.8.4"
52-
addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
47+
#- env: BUILD=cabal GHCVER=7.6.3 CABALVER=1.16 HAPPYVER=1.19.5 ALEXVER=3.1.7
48+
# compiler: ": #GHC 7.6.3"
49+
# addons: {apt: {packages: [cabal-install-1.16,ghc-7.6.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
50+
#- env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 HAPPYVER=1.19.5 ALEXVER=3.1.7
51+
# compiler: ": #GHC 7.8.4"
52+
# addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
5353
- env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 HAPPYVER=1.19.5 ALEXVER=3.1.7
5454
compiler: ": #GHC 7.10.3"
5555
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
5656
- env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 HAPPYVER=1.19.5 ALEXVER=3.1.7
5757
compiler: ": #GHC 8.0.2"
5858
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
59+
- env: BUILD=cabal GHCVER=8.2.2 CABALVER=2.0 HAPPYVER=1.19.5 ALEXVER=3.1.7
60+
compiler: ": #GHC 8.2.2"
61+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
5962

6063
# Build with the newest GHC and cabal-install. This is an accepted failure,
6164
# see below.
@@ -85,7 +88,7 @@ matrix:
8588
compiler: ": #stack 8.0.1"
8689
addons: {apt: {packages: [libgmp-dev]}}
8790

88-
- env: BUILD=stack ARGS="--resolver lts-8"
91+
- env: BUILD=stack ARGS="--resolver lts-9"
8992
compiler: ": #stack 8.0.2"
9093
addons: {apt: {packages: [libgmp-dev]}}
9194

@@ -116,7 +119,7 @@ matrix:
116119
compiler: ": #stack 8.0.1 osx"
117120
os: osx
118121

119-
- env: BUILD=stack ARGS="--resolver lts-8"
122+
- env: BUILD=stack ARGS="--resolver lts-9"
120123
compiler: ": #stack 8.0.2 osx"
121124
os: osx
122125

@@ -164,13 +167,21 @@ install:
164167
set -ex
165168
case "$BUILD" in
166169
stack)
170+
# Add in extra-deps for older snapshots, as necessary
171+
stack --no-terminal --install-ghc $ARGS test --bench --dry-run || ( \
172+
stack --no-terminal $ARGS build cabal-install && \
173+
stack --no-terminal $ARGS solver --update-config)
174+
175+
# Build the dependencies
167176
stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
168177
;;
169178
cabal)
170179
cabal --version
171180
travis_retry cabal update
172181
173-
# Get the list of packages from the stack.yaml file
182+
# Get the list of packages from the stack.yaml file. Note that
183+
# this will also implicitly run hpack as necessary to generate
184+
# the .cabal files needed by cabal-install.
174185
PACKAGES=$(stack --install-ghc query locals | grep '^ *path' | sed 's@^ *path:@@')
175186
176187
cabal install --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls --ghc-options=-O0 --reorder-goals --max-backjumps=-1 $CABALARGS $PACKAGES

doc/travis_ci.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ This page documents how to use Stack on
77
familiarity with Travis. We provide two fully baked example files
88
ready to be used on your projects:
99

10-
* [The simple Travis configuration](https://raw.githubusercontent.com/commercialhaskell/stack/master/doc/travis-simple.yml)
10+
* [The simple Travis configuration](https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-simple.yml)
1111
is intended for applications that do not require multiple GHC
1212
support or cross-platform support. It builds and tests your project
1313
with just the settings present in your `stack.yaml` file.
14-
* [The complex Travis configuration](https://raw.githubusercontent.com/commercialhaskell/stack/master/doc/travis-complex.yml)
14+
* [The complex Travis configuration](https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/travis-complex.yml)
1515
is intended for projects that need to support multiple GHC versions
1616
and multiple OSes, such as open source libraries to be released to
1717
Hackage. It tests against cabal-install, as well as Stack on Linux
@@ -30,7 +30,9 @@ repo, enable Travis on the repo, and you're good to go.
3030

3131
You may also be interested in using AppVeyor, which supports Windows
3232
builds, for more cross-platform testing. There's a
33-
[short blog post available on how to do this](http://www.snoyman.com/blog/2016/08/appveyor-haskell-windows-ci).
33+
[short blog post available on how to do this](http://www.snoyman.com/blog/2016/08/appveyor-haskell-windows-ci),
34+
or just copy in
35+
[the appveyor.yml file](https://raw.githubusercontent.com/commercialhaskell/stack/stable/doc/appveyor.yml)
3436

3537
The rest of this document explains the details of common Travis
3638
configurations for those of you who want to tweak the above

doc/yaml_configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,13 @@ extra-lib-dirs:
462462
- /opt/foo/lib
463463
```
464464

465+
Since these are system-dependent absolute paths, it is recommended that you
466+
specify these in your `config.yaml` within the stack root (usually, `~/.stack`).
467+
If you control the build environment in your project's ``stack.yaml``, perhaps
468+
through docker or other means, then it may well make sense to include these
469+
there as well.
470+
471+
465472
### with-gcc
466473

467474
Specify a path to gcc explicitly, rather than relying on the normal path resolution.

0 commit comments

Comments
 (0)