Skip to content

Commit 01b98cf

Browse files
committed
Merge remote-tracking branch 'origin/stable'
2 parents 979e613 + 7a4b06a commit 01b98cf

File tree

2 files changed

+60
-26
lines changed

2 files changed

+60
-26
lines changed

doc/travis-complex.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ matrix:
5151
#- env: BUILD=cabal GHCVER=7.8.4 CABALVER=1.18 HAPPYVER=1.19.5 ALEXVER=3.1.7
5252
# compiler: ": #GHC 7.8.4"
5353
# addons: {apt: {packages: [cabal-install-1.18,ghc-7.8.4,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
54-
- env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 HAPPYVER=1.19.5 ALEXVER=3.1.7
55-
compiler: ": #GHC 7.10.3"
56-
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
54+
#- env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22 HAPPYVER=1.19.5 ALEXVER=3.1.7
55+
# compiler: ": #GHC 7.10.3"
56+
# addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
5757
- env: BUILD=cabal GHCVER=8.0.2 CABALVER=1.24 HAPPYVER=1.19.5 ALEXVER=3.1.7
5858
compiler: ": #GHC 8.0.2"
5959
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
6060
- env: BUILD=cabal GHCVER=8.2.2 CABALVER=2.0 HAPPYVER=1.19.5 ALEXVER=3.1.7
6161
compiler: ": #GHC 8.2.2"
6262
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.2,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
63+
- env: BUILD=cabal GHCVER=8.4.1 CABALVER=2.0 HAPPYVER=1.19.5 ALEXVER=3.1.7
64+
compiler: ": #GHC 8.4.1"
65+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.4.1,happy-1.19.5,alex-3.1.7], sources: [hvr-ghc]}}
6366

6467
# Build with the newest GHC and cabal-install. This is an accepted failure,
6568
# see below.
@@ -73,27 +76,27 @@ matrix:
7376
compiler: ": #stack default"
7477
addons: {apt: {packages: [libgmp-dev]}}
7578

76-
- env: BUILD=stack ARGS="--resolver lts-2"
77-
compiler: ": #stack 7.8.4"
78-
addons: {apt: {packages: [libgmp-dev]}}
79+
#- env: BUILD=stack ARGS="--resolver lts-2"
80+
# compiler: ": #stack 7.8.4"
81+
# addons: {apt: {packages: [libgmp-dev]}}
7982

80-
- env: BUILD=stack ARGS="--resolver lts-3"
81-
compiler: ": #stack 7.10.2"
82-
addons: {apt: {packages: [libgmp-dev]}}
83+
#- env: BUILD=stack ARGS="--resolver lts-3"
84+
# compiler: ": #stack 7.10.2"
85+
# addons: {apt: {packages: [libgmp-dev]}}
8386

84-
- env: BUILD=stack ARGS="--resolver lts-6"
85-
compiler: ": #stack 7.10.3"
86-
addons: {apt: {packages: [libgmp-dev]}}
87+
#- env: BUILD=stack ARGS="--resolver lts-6"
88+
# compiler: ": #stack 7.10.3"
89+
# addons: {apt: {packages: [libgmp-dev]}}
8790

88-
- env: BUILD=stack ARGS="--resolver lts-7"
89-
compiler: ": #stack 8.0.1"
90-
addons: {apt: {packages: [libgmp-dev]}}
91+
#- env: BUILD=stack ARGS="--resolver lts-7"
92+
# compiler: ": #stack 8.0.1"
93+
# addons: {apt: {packages: [libgmp-dev]}}
9194

9295
- env: BUILD=stack ARGS="--resolver lts-9"
9396
compiler: ": #stack 8.0.2"
9497
addons: {apt: {packages: [libgmp-dev]}}
9598

96-
- env: BUILD=stack ARGS="--resolver lts-10"
99+
- env: BUILD=stack ARGS="--resolver lts-11"
97100
compiler: ": #stack 8.2.2"
98101
addons: {apt: {packages: [libgmp-dev]}}
99102

@@ -112,23 +115,23 @@ matrix:
112115
# compiler: ": #stack 7.8.4 osx"
113116
# os: osx
114117

115-
- env: BUILD=stack ARGS="--resolver lts-3"
116-
compiler: ": #stack 7.10.2 osx"
117-
os: osx
118+
#- env: BUILD=stack ARGS="--resolver lts-3"
119+
# compiler: ": #stack 7.10.2 osx"
120+
# os: osx
118121

119-
- env: BUILD=stack ARGS="--resolver lts-6"
120-
compiler: ": #stack 7.10.3 osx"
121-
os: osx
122+
#- env: BUILD=stack ARGS="--resolver lts-6"
123+
# compiler: ": #stack 7.10.3 osx"
124+
# os: osx
122125

123-
- env: BUILD=stack ARGS="--resolver lts-7"
124-
compiler: ": #stack 8.0.1 osx"
125-
os: osx
126+
#- env: BUILD=stack ARGS="--resolver lts-7"
127+
# compiler: ": #stack 8.0.1 osx"
128+
# os: osx
126129

127130
- env: BUILD=stack ARGS="--resolver lts-9"
128131
compiler: ": #stack 8.0.2 osx"
129132
os: osx
130133

131-
- env: BUILD=stack ARGS="--resolver lts-10"
134+
- env: BUILD=stack ARGS="--resolver lts-11"
132135
compiler: ": #stack 8.2.2 osx"
133136
os: osx
134137

test/integration/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Stack Integration Tests
2+
3+
This directory contains a bunch of integration tests for Stack. Each
4+
directory inside the `tests` subdirectory represents a single
5+
test. Each of those directories has:
6+
7+
* A `Main.hs` file, which provides the script to be run
8+
* A `files `directory, providing the working directory the script will
9+
be run from. (If you have a test that doesn't require any specific
10+
working directory, there may be no `files` directory.)
11+
12+
It would be great to expand this file into a full tutorial, but for
13+
now, the easiest way to get started with writing an integration test
14+
is to copy an existing example.
15+
16+
## Running
17+
18+
One simple way to run a single test is:
19+
20+
* Change into the `files` directory
21+
* Run the command `stack runghc -- -i../../../lib ../Main.hs`
22+
23+
A more thorough way to run the tests is with
24+
25+
```shell
26+
$ stack test --flag stack:integration-tests stack:test:stack-integration-test
27+
```
28+
29+
Note that this command can take a _long_ time. It's also more thorough
30+
than the quick command given above, as it will run each test with a
31+
clean `STACK_ROOT`.

0 commit comments

Comments
 (0)