TravisCI armv6hf build (aka Raspberry Pi build)

This commit is contained in:
Vidar Holen 2018-07-08 19:08:29 -07:00
parent 3a672968f3
commit 84e678e9ff
2 changed files with 16 additions and 5 deletions

View File

@ -27,7 +27,7 @@ do
zip "${file%.*}.zip" README.txt LICENSE.txt "$file" zip "${file%.*}.zip" README.txt LICENSE.txt "$file"
done done
for file in *.linux for file in *.linux-x86_64
do do
base="${file%.*}" base="${file%.*}"
cp "$file" "shellcheck" cp "$file" "shellcheck"
@ -35,6 +35,14 @@ do
rm "shellcheck" rm "shellcheck"
done done
for file in *.linux-armv6hf
do
base="${file%.*}"
cp "$file" "shellcheck"
tar -cJf "$base.linux.armv6hf.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
rm "shellcheck"
done
for file in ./* for file in ./*
do do
sha512sum "$file" > "$file.sha512sum" sha512sum "$file" > "$file.sha512sum"

View File

@ -30,18 +30,21 @@ script:
- docker rm "$id" - docker rm "$id"
- ls -l shellcheck - ls -l shellcheck
- ./shellcheck myscript - ./shellcheck myscript
- for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux"; done - for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-x86_64"; done
# Linux Alpine based Docker image # Linux Alpine based Docker image
- name="$DOCKER_BASE-alpine" - name="$DOCKER_BASE-alpine"
- DOCKER_BUILDS="$DOCKER_BUILDS $name" - DOCKER_BUILDS="$DOCKER_BUILDS $name"
- sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine - sed -e '/DELETE-MARKER/,$d' Dockerfile > Dockerfile.alpine
- docker build -f Dockerfile.alpine -t "$name:current" . - docker build -f Dockerfile.alpine -t "$name:current" .
- docker run "$name:current" sh -c 'shellcheck --version' - docker run "$name:current" sh -c 'shellcheck --version'
# Linux armv6hf static executable
- docker run -v "$PWD:/mnt" koalaman/armv6hf-builder -c 'compile-shellcheck'
- for tag in $TAGS; do cp "shellcheck" "deploy/shellcheck-$tag.linux-armv6hf"; done
- rm -f shellcheck || true
# Windows .exe # Windows .exe
- docker pull koalaman/winghc - docker run --user="$UID" -v "$PWD:/appdata" koalaman/winghc cuib
- docker run --user="$UID" --rm -v "$PWD:/appdata" koalaman/winghc cuib
- for tag in $TAGS; do cp "dist/build/ShellCheck/shellcheck.exe" "deploy/shellcheck-$tag.exe"; done - for tag in $TAGS; do cp "dist/build/ShellCheck/shellcheck.exe" "deploy/shellcheck-$tag.exe"; done
- rm -rf dist || true - rm -rf dist shellcheck || true
# Misc packaging # Misc packaging
- ./.prepare_deploy - ./.prepare_deploy