on master help sign in
Add stack upgrade
1c1fe0cHarendra Kumar
.travis.yml+2−1
@@ -59,7 +59,7 @@ install: true
59script:
59script:
60 - |
60 - |
61 # Customizable options
61 # Customizable options
62− PACKAGE_TEST_VER="df401952254b782379b3d109bd051a4a56e61635"
62+ PACKAGE_TEST_VER="7fe14f616d05d69de25a46002668a8509b6257a5"
63 GHC_OPTIONS="-O0 -Werror"
63 GHC_OPTIONS="-O0 -Werror"
64 test -n "$COVERALLS" && \
64 test -n "$COVERALLS" && \
65 COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines \
65 COVERALLS_OPTIONS="--coverage-mode=StrictlyFullLines \
@@ -83,6 +83,7 @@ script:
83 PATH=$PATH
83 PATH=$PATH
84 BUILD=$BUILD
84 BUILD=$BUILD
85 RESOLVER=$RESOLVER
85 RESOLVER=$RESOLVER
86+ STACK_UPGRADE=y
86 STACK_YAML=$STACK_YAML
87 STACK_YAML=$STACK_YAML
87 STACK_BUILD_OPTIONS="$STACK_BUILD_OPTIONS"
88 STACK_BUILD_OPTIONS="$STACK_BUILD_OPTIONS"
88 GHCVER=$GHCVER
89 GHCVER=$GHCVER
appveyor.yml+3−1
@@ -10,6 +10,7 @@ environment:
10 BUILD: "stack"
10 BUILD: "stack"
11 RESOLVER: "lts-9.0"
11 RESOLVER: "lts-9.0"
12 GHC_OPTIONS: "-O0 -Werror"
12 GHC_OPTIONS: "-O0 -Werror"
13+ STACK_UPGRADE: "y"
13# STACK_OPTIONS: "-v"
14# STACK_OPTIONS: "-v"
14
15
15 STACK_ROOT: "c:\\sr"
16 STACK_ROOT: "c:\\sr"
@@ -17,7 +18,7 @@ environment:
17 PATH: "%PATH%;%APPDATA%\\local\\bin"
18 PATH: "%PATH%;%APPDATA%\\local\\bin"
18 CABAL_REINIT_CONFIG: "y"
19 CABAL_REINIT_CONFIG: "y"
19 TEST_INSTALL: "y"
20 TEST_INSTALL: "y"
20− PACKAGE_TEST_VER: "df401952254b782379b3d109bd051a4a56e61635"
21+ PACKAGE_TEST_VER: "7fe14f616d05d69de25a46002668a8509b6257a5"
21
22
22cache:
23cache:
23 - "%STACK_ROOT%" # stack root
24 - "%STACK_ROOT%" # stack root
@@ -32,6 +33,7 @@ build: off
32before_test:
33before_test:
33- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
34- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
34- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-x86_64 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
35- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-x86_64 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
36+- stack --version
35- curl -sSkL -opackage-test.sh https://raw.githubusercontent.com/harendra-kumar/package-test/%PACKAGE_TEST_VER%/package-test.sh
37- curl -sSkL -opackage-test.sh https://raw.githubusercontent.com/harendra-kumar/package-test/%PACKAGE_TEST_VER%/package-test.sh
36
38
37test_script:
39test_script: