Skip to content

Commit cb020e5

Browse files
committed
Fetch latest release of configlet in travis build
1 parent 96f8ceb commit cb020e5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: bash
22

33
script:
4-
- bin/configlet-linux-amd64 .
4+
- bin/fetch-configlet
5+
- bin/configlet .

bin/fetch-configlet

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
LATEST=https://github.com/exercism/configlet/releases/latest
4+
5+
VERSION="$(curl --head --silent $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
6+
URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-linux-amd64.tgz
7+
8+
curl -s --location $URL | tar xz -C bin/

0 commit comments

Comments
 (0)