appveyor - use powershell for commands.
Another try at getting path setting to work properly.
This commit is contained in:
parent
a721968045
commit
bab92c6ce4
1 changed files with 17 additions and 10 deletions
27
appveyor.yml
27
appveyor.yml
|
@ -1,15 +1,22 @@
|
||||||
install:
|
install:
|
||||||
- 'git submodule update --init'
|
- ps: >-
|
||||||
- 'choco install haskellplatform -version 2014.2.0.0 -y'
|
git submodule update --init
|
||||||
- 'SET PATH="%PATH%;C:\Program Files\Haskell Platform\2014.2.0.0\bin;C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin;C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin"'
|
choco install haskellplatform -version 2014.2.0.0 -y
|
||||||
- cabal update
|
# Haskell Platfrom package doesn't update PATH for the current shell instance
|
||||||
- cabal install --only-dependencies --enable-tests -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
|
|
||||||
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
|
||||||
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
|
||||||
|
$env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
|
||||||
|
echo "PATH is $env:Path"
|
||||||
|
cabal update
|
||||||
|
cabal install --only-dependencies --enable-tests -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- 'SET PATH="%PATH%;C:\Program Files\Haskell Platform\2014.2.0.0\bin;C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin;C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin"'
|
- ps: >-
|
||||||
- 'cabal configure --enable-tests -v2 -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"'
|
echo "PATH is $env:Path"
|
||||||
- 'cabal build'
|
cabal configure --enable-tests -v2 -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
|
||||||
|
cabal build
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- 'SET PATH="%PATH%;C:\Program Files\Haskell Platform\2014.2.0.0\bin;C:\Program Files\Haskell Platform\2014.2.0.0\lib\extralibs\bin;C:\Program Files\Haskell Platform\2014.2.0.0\mingw\bin"'
|
- ps: >-
|
||||||
- 'cabal test'
|
cabal test
|
||||||
|
|
Loading…
Add table
Reference in a new issue