Skip to content

Commit 97a04b9

Browse files
committed
Fix travis build script
1 parent ab3b1bf commit 97a04b9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
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

Lines changed: 8 additions & 0 deletions
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)