Parcourir la source

Fix travis build script

Katrina Owen il y a 12 ans
Parent
révision
97a04b94a8
2 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. 2
    1
      .travis.yml
  2. 8
    0
      bin/fetch-configlet

+ 2
- 1
.travis.yml Voir le fichier

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

+ 8
- 0
bin/fetch-configlet Voir le fichier

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/