Merge pull request #732 from LaurentGoderre/fix-update

Fix the update script and .travis.yml.template
This commit is contained in:
Peter Dave Hello 2018-05-16 00:17:37 +08:00 committed by GitHub
commit 2835ca0b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -20,6 +20,17 @@ stages:
jobs:
include:
- stage: Test
env:
- TEST: Editor Config check
language: node_js
node_js:
- lts/*
install:
- npm i -g eclint
script:
- eclint check
- stage: Test
env:
- TEST: Doc Toc Check
@ -30,6 +41,14 @@ jobs:
doctoc --title='## Table of Contents' --github README.md &&
diff -q README.md README.md.tmp
- stage: Test
env:
- TEST: shfmt check
script:
- docker run -it --rm -v "$(pwd)":/sh -w /sh jamesmstone/shfmt -i 2 -l -w -ci .
- git diff --color
- git diff --stat=220 --color --exit-code
- stage: Test
env:
- TEST: Shell Check

View File

@ -37,7 +37,7 @@ function update_node_version() {
fullVersion="$(curl -sSL --compressed "$baseuri" | grep '<a href="v'"$version." | sed -E 's!.*<a href="v([^"/]+)/?".*!\1!' | cut -d'.' -f2,3 | sort -n | tail -1)"
(
cp "$template" "$dockerfile"
local fromprefix
local fromprefix=""
if [[ "$arch" != "amd64" && "$variant" != "onbuild" ]]; then
fromprefix="$arch\\/"
fi