forked from nextflow-io/nextflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpub-tests.sh
More file actions
executable file
·29 lines (25 loc) · 856 Bytes
/
pub-tests.sh
File metadata and controls
executable file
·29 lines (25 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -x
#
# Make test results available through
# https://www.nextflow.io/tests/travis/index.html
#
export AWS_ACCESS_KEY_ID=$NXF_AWS_ACCESS
export AWS_SECRET_ACCESS_KEY=$NXF_AWS_SECRET
export AWS_DEFAULT_REGION=eu-west-1
# use the java version as target context
ver=$(java -version 2>&1 | awk '/version/ {gsub(/"/, "", $3); print $3}')
base=s3://www2.nextflow.io/tests/$1/$ver
# delete previous run
aws --region $AWS_DEFAULT_REGION s3 rm --quiet --recursive $base
# upload unit test results
for x in $(find . -path \*build/reports/tests/test); do
aws --region $AWS_DEFAULT_REGION s3 sync $x $base/${x#./} \
--cache-control max-age=0 \
--metadata-directive REPLACE \
--storage-class STANDARD \
--acl public-read \
--delete
done
# upload integration test results
aws --region $AWS_DEFAULT_REGION s3 sync tests/checks $base/integration