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

set -e
set -o pipefail

if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
  # Install and add awscli to PATH for uploading the results
    mapbox_time "install_awscli" \
    pip install --user awscli
    export PATH="`python -m site --user-base`/bin:${PATH}"

    mapbox_time_start "deploy_results"
    (cd ./node_modules/mapbox-gl-test-suite/ && ./bin/deploy_results.sh)
    mapbox_time_finish
fi