Skip to content

Commit

Permalink
build: travis test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 25, 2019
1 parent 832acaa commit 67241e8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ sudo: required
language: bash

install:
- sudo apt-get update -qq
- sudo apt-get update -qy
- sudo apt-get install -y jq
- wget https://github.com/tus/tusd/releases/download/v1.0.0/tusd_linux_amd64.tar.gz
- tar xzf tusd_linux_amd64.tar.gz

before_script:
- chmod +x tusc.sh
- chmod +x tusd_linux_amd64/tusd

script:
- bash -n ./tusc.sh
- 'tusd_linux_amd64/tusd --upload-dir ~/.tusd-data --base-path /tus/ > /dev/null 2>&1 &'
- './tusc.sh -H 0:1080 -f tusd_linux_amd64.tar.gz -a sha256 -b /tus/'
- 'URL=$(./tusc.sh -H 0:1080 -f tusd_linux_amd64.tar.gz -a sha256 -b /tus/ -L)'
- 'wget $(echo $URL | grep -o -E 'http://[a-z0-9\.\:\/]+') -O tusd_linux_amd64.tar.gz1'
- '[[ "$(md5sum tusd_linux_amd64.tar.gz1)" == "$(md5sum tusd_linux_amd64.tar.gz)v" ]] || exit 1'

0 comments on commit 67241e8

Please sign in to comment.