File tree Expand file tree Collapse file tree 4 files changed +53
-13
lines changed Expand file tree Collapse file tree 4 files changed +53
-13
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ sudo: true
3
3
4
4
# Add new environments to the build here:
5
5
env :
6
- - GHCVER=7.10.3 CABALVER=1.22
7
- - GHCVER=8.0.2 CABALVER=1.24
8
- - GHCVER=8.2.1 CABALVER=2.0
9
- - GHCVER=head CABALVER=head
6
+ - GHCVER=7.10.3 CABALVER=1.22
7
+ - GHCVER=8.0.2 CABALVER=1.24
8
+ - GHCVER=8.2.1 CABALVER=2.0
9
+ - GHCVER=head CABALVER=head
10
10
11
11
# Allow for develop branch to break
12
12
matrix :
13
13
allow_failures :
14
- - env : GHCVER=head CABALVER=head
14
+ - env : GHCVER=head CABALVER=head
15
15
16
16
# Manually install ghc and cabal
17
17
before_install :
@@ -22,12 +22,12 @@ before_install:
22
22
- export PATH=$HOME/.cabal/bin:$PATH
23
23
- travis_retry cabal update
24
24
25
- # install happy and alex first, see: https://github.com/jameysharp/corrode/issues/57
25
+ # Install Happy and Alex first, before installing
26
26
install :
27
27
- echo $PATH
28
28
- cabal --version
29
29
- ghc --version
30
- - cabal install happy
30
+ - cabal install happy --constraint 'happy >= 1.19.8'
31
31
- cabal install alex
32
32
- cabal install --verbose --enable-tests
33
33
- cabal configure
Original file line number Diff line number Diff line change 1
- # Parser and pretty printer for the Rust language [ ![ Build Status] [ 4 ]] [ 5 ]
1
+ # Parser and pretty printer for Rust [ ![ Build Status] [ 4 ]] [ 5 ] [ ![ Windows build status ] [ 7 ]] [ 8 ]
2
2
3
3
` language-rust ` aspires to efficiently and accurately parse and pretty-print the [ Rust language] [ 0 ] .
4
4
The underlying AST structures are also intended to be as similar as possible to the AST ` rustc ` uses
5
5
itself. When ` language-rust ` and ` rustc ` have diverging AST, the divergence should be detailed in
6
6
the documentation.
7
7
8
- ## Building with Stack
8
+ ## Building
9
+
10
+ ## Cabal
11
+
12
+ With Cabal and GHC, you should only need to run
13
+
14
+ cabal install happy --constraint 'happy >= 1.19.8'
15
+ cabal install alex
16
+ cabal configure
17
+ cabal build
18
+
19
+ ## Stack
9
20
10
21
With the [ Stack] [ 1 ] tool installed, you should only need to run
11
22
12
23
stack init
13
- stack install
24
+ stack build
14
25
15
26
The second command is responsible for pulling in all of the dependencies (including executable
16
27
tools like [ Alex] [ 2 ] , [ Happy] [ 3 ] , and GHC itself) and then compiling everything.
@@ -47,3 +58,5 @@ pretty-printing.
47
58
[ 4 ] : https://travis-ci.org/harpocrates/language-rust.svg?branch=master
48
59
[ 5 ] : https://travis-ci.org/harpocrates/language-rust
49
60
[ 6 ] : https://github.com/rust-lang-nursery/fmt-rfcs
61
+ [ 7 ] : https://ci.appveyor.com/api/projects/status/um8dxklqmubvn091/branch/master?svg=true
62
+ [ 8 ] : https://ci.appveyor.com/project/harpocrates/language-rust/branch/master
Original file line number Diff line number Diff line change
1
+ # Clone location
2
+ clone_folder : c:\language-rust
3
+
4
+ # Add new environments to the build here:
5
+ environment :
6
+ matrix :
7
+ # - resolver: lts-6.35 # ghc-7.10.3
8
+ # - resolver: lts-7.24 # ghc-8.0.1
9
+ - resolver : lts-9.8 # ghc-8.0.2
10
+
11
+ # Manually fetch stack
12
+ install :
13
+ - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
14
+ - curl --output stack.zip --location --insecure http://www.stackage.org/stack/windows-x86_64
15
+ - dir
16
+ - 7z x stack.zip stack.exe
17
+ - stack --no-terminal init --resolver %resolver% > nul
18
+ - stack --no-terminal setup --resolver %resolver% > nul
19
+
20
+ # Install Happy and Alex first, before installing
21
+ build_script :
22
+ - stack --no-terminal install --resolver %resolver% happy-1.19.8
23
+ - stack --no-terminal install --resolver %resolver% alex
24
+
25
+ test_script :
26
+ - stack --no-terminal test --resolver %resolver% :unit-tests
27
+
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ test-suite rustc-tests
136
136
type : exitcode-stdio-1.0
137
137
default-language : Haskell2010
138
138
139
- build-depends : base >= 4.9 && < 5.0
139
+ build-depends : base >= 4.8 && < 5.0
140
140
, process >= 1.3
141
141
, prettyprinter >= 1.1
142
142
, bytestring >= 0.10
@@ -162,7 +162,7 @@ benchmark timing-benchmarks
162
162
type : exitcode-stdio-1.0
163
163
default-language : Haskell2010
164
164
build-depends : base >= 4.8 && < 5.0
165
- , process >= 1.4. 3
165
+ , process >= 1.3
166
166
, bytestring >= 0.10
167
167
, directory >= 1.2.5.0
168
168
, filepath >= 1.4.0.0
@@ -182,7 +182,7 @@ benchmark allocation-benchmarks
182
182
type : exitcode-stdio-1.0
183
183
default-language : Haskell2010
184
184
build-depends : base >= 4.8 && < 5.0
185
- , process >= 1.4. 3
185
+ , process >= 1.3
186
186
, bytestring >= 0.10
187
187
, directory >= 1.2.5.0
188
188
, filepath >= 1.4.0.0
You can’t perform that action at this time.
0 commit comments