Skip to content

Commit

Permalink
update scripts to use package.yaml instead of cabal to figure out ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
aviaviavi committed Sep 29, 2020
1 parent 73dfb4c commit af1911a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ before_install:
# library, executables, and test suites, and runs the test suites.
# `--no-terminal works` around some quirks in Travis's terminal implementation.
script: |
export version=$(grep "^version" curl-runnings.cabal | sed 's/ //g' | cut -d ':' -f 2) &&
export version=$(grep "^version" package.yaml | sed 's/ //g' | cut -d ':' -f 2) &&
echo "building binary version $version" &&
stack $ARGS --no-terminal --install-ghc --haddock test &&
stack $ARGS --no-terminal --install-ghc --haddock install &&
Expand Down
2 changes: 1 addition & 1 deletion build-binary.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

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

echo "Creating $archive"
Expand Down

0 comments on commit af1911a

Please sign in to comment.