Update CI configuration, test if upload/download produces same file

This commit is contained in:
timvisee 2018-11-21 22:10:52 +01:00
parent 5fbcb2cd02
commit a91e82407e
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2

View file

@ -111,9 +111,11 @@ public-send-test:
GIT_STRATEGY: none
before_script: []
script:
# Generate random file, upload/download and assert equality
- head -c1m </dev/urandom >testfile
- ./ffsend upload testfile -n testfile.bin -a -d 10 -p secret -I
# TODO: download this file, compare checksums
- ./ffsend download $(./ffsend history -q) -p secret -I -o downloadfile
- cmp --silent ./testfile ./downloadfile || (echo ERROR: Downloaded file is different than original; exit 1)
# Cargo crate release
crate: