Skip to content

Commit

Permalink
Helper to auto-bump .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Gooch committed Apr 17, 2019
1 parent 863fb20 commit 1c8133d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions update_travis.sh
@@ -0,0 +1,7 @@
#!/bin/bash

LOC=$(curl -fsSL -I https://www.ortussolutions.com/parent/download/commandbox/type/bin |grep -i location: |tail -n1 |sed -n 's,^location: ,,ip'|sed -e 's,\r,,g;')
VER=$(echo $LOC |sed -n 's,^.*/ortussolutions/commandbox/\([^/]*\)/commandbox-bin.*,\1,p')

perl -pi -e "s|(-\s*COMMANDBOX_VERSION)=\S+|\$1=${VER}|" .travis.yml

0 comments on commit 1c8133d

Please sign in to comment.