Skip to content

Commit

Permalink
Update package-test URL and version
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Sep 18, 2016
1 parent 02a06ac commit cddbd7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ script:
- |
add_path() { eval "test -n \"\$$1\"" && eval "PATH=/opt/$2/\"\$$1\"/bin:$PATH"; true; }
cabal_env() { if test "$BUILD" = cabal; then echo $1; fi; }
pkg_sanity() { echo https://raw.githubusercontent.com/harendra-kumar/package-sanity/$1/package-sanity.sh; }
pkg_test() { echo https://raw.githubusercontent.com/harendra-kumar/package-test/$1/package-test.sh; }
CURL=$(which curl)
PATH=/bin:/usr/bin
Expand All @@ -65,4 +65,4 @@ script:
$(cabal_env CABAL_TEST_INSTALL=y)
$(cabal_env CABAL_NO_SANDBOX=y)
$(cabal_env CABAL_HACKAGE_MIRROR=hackage.haskell.org:http://hackage.fpcomplete.com)
/bin/bash <($CURL -sL $(pkg_sanity a29ed5335e65e5df72e42e6e4e1ffd9358ec2232))
/bin/bash <($CURL -sL $(pkg_test 23c3e50a8d55804d60435c946192990ffb856336))
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ environment:
LOCAL_BIN: "%APPDATA%\\local\\bin"
PATH: "%PATH%;%APPDATA%\\local\\bin"
CABAL_REINIT_CONFIG: "y"
PACKAGE_TEST_VER: "23c3e50a8d55804d60435c946192990ffb856336"

cache:
- "%STACK_ROOT%" # stack root
Expand All @@ -24,8 +25,8 @@ build: off
before_test:
- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-i386 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
- curl -sSkL -opackage-sanity.sh https://raw.githubusercontent.com/harendra-kumar/package-sanity/windows/package-sanity.sh
- curl -sSkL -opackage-test.sh https://raw.githubusercontent.com/harendra-kumar/package-test/%PACKAGE_TEST_VER%/package-test.sh

test_script:
- stack setup > nul
- stack exec bash package-sanity.sh
- stack exec bash package-test.sh

0 comments on commit cddbd7b

Please sign in to comment.