Skip to content

Commit 0f06662

Browse files
committed
Use existing cabal.project in appveyor
1 parent d025725 commit 0f06662

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

appveyor.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,12 @@ before_build:
7676
- rmdir /Q /S dist-newstyle
7777

7878
build_script:
79-
- echo packages:. > cabal.project
80-
- cabal configure --allow-newer --ghc-options="-Werror"
8179
- cabal %CABOPTS% build -j all --ghc-options="-Werror"
8280
# Build from sdist if required.
8381
- ps: >-
8482
If ($env:PKG_TEST -Match "yes") {
8583
cabal sdist
86-
echo "packages: dist-newstyle/sdist/*.tar.gz" | Out-File -Encoding ASCII cabal.project
84+
((Get-Content -path cabal.project -Raw) -replace "packages: .", "packages: dist-newstyle/sdist/*.tar.gz") | Set-Content -Path cabal.project
8785
cat cabal.project
88-
cabal configure --allow-newer --ghc-options="-Werror"
8986
cabal $env:CABOPTS build -j pkg:Win32 --ghc-options="-Werror"
9087
}

cabal.project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages: .
2+
https://hackage.haskell.org/package/filepath-1.4.99.5/candidate/filepath-1.4.99.5.tar.gz

0 commit comments

Comments
 (0)