Skip to content

Commit af1911a

Browse files
committed
update scripts to use package.yaml instead of cabal to figure out versions
1 parent 73dfb4c commit af1911a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_install:
2727
# library, executables, and test suites, and runs the test suites.
2828
# `--no-terminal works` around some quirks in Travis's terminal implementation.
2929
script: |
30-
export version=$(grep "^version" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2) &&
30+
export version=$(grep "^version" package.yaml | sed 's/ //g' | cut -d ':' -f 2) &&
3131
echo "building binary version $version" &&
3232
stack $ARGS --no-terminal --install-ghc --haddock test &&
3333
stack $ARGS --no-terminal --install-ghc --haddock install &&

build-binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
arch="$1"
4-
version=$(grep "^version" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2)
4+
version=$(grep "^version" package.yaml | sed 's/ //g' | cut -d ':' -f 2)
55
archive="curl-runnings-$version-$arch.tar.gz"
66

77
echo "Creating $archive"

0 commit comments

Comments
 (0)