Make test file on CI just 2MBs, also test Firefox Send v3 host

This commit is contained in:
timvisee 2019-02-28 09:56:50 +01:00
parent b8116c69f9
commit 0f123e4866
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -117,11 +117,16 @@ public-send-test:
before_script: []
script:
# Generate random file, upload/download and assert equality
- "head -c16m </dev/urandom >testfile"
- "head -c2m </dev/urandom >testfile"
- "./ffsend upload testfile -d=10 -p=secret -I"
- "./ffsend download $(./ffsend history -q) -p=secret -I -o=downloadfile"
- "cmp --silent ./testfile ./downloadfile || (echo ERROR: Downloaded file is different than original; exit 1)"
# Also test Firefox Send v3
- "./ffsend upload --host http://send2.dev.lcip.org/ testfile -d=10 -p=secret -I"
- "./ffsend download $(./ffsend history -q) -p=secret -I -o=downloadfile2"
- "cmp --silent ./testfile ./downloadfile2 || (echo ERROR: Downloaded file is different than original; exit 1)"
# Cargo crate release
crate:
stage: release