summaryrefslogtreecommitdiff
path: root/platform/node/scripts/after_script.sh
blob: beb8d6966f70269d8fa862e43699ae8231074275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e
set -o pipefail

JOB=$1

if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
    gzip --stdout mapbox-gl-js/test/integration/render-tests/index.html | \
        aws s3 cp --acl public-read --content-encoding gzip --content-type text/html \
            - s3://mapbox/mapbox-gl-native/render-tests/$JOB/index.html

    echo http://mapbox.s3.amazonaws.com/mapbox-gl-native/render-tests/$JOB/index.html
fi