Explorar el Código

Fix travis build script

Katrina Owen hace 12 años
padre
commit
97a04b94a8
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  1. 2
    1
      .travis.yml
  2. 8
    0
      bin/fetch-configlet

+ 2
- 1
.travis.yml Ver fichero

@@ -1,4 +1,5 @@
1 1
 language: bash
2 2
 
3 3
 script:
4
-  - bin/configlet-linux-amd64 .
4
+  - bin/fetch-configlet
5
+  - bin/configlet .

+ 8
- 0
bin/fetch-configlet Ver fichero

@@ -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/