* Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
23 lines
696 B
Bash
Executable File
23 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
JOB=$1
|
|
TAG=$2
|
|
|
|
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
|
|
gzip --stdout node_modules/mapbox-gl-test-suite/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
|
|
|
|
PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")
|
|
|
|
if [[ $TAG == node-v${PACKAGE_JSON_VERSION} ]]; then
|
|
./node_modules/.bin/node-pre-gyp package
|
|
./node_modules/.bin/node-pre-gyp publish info
|
|
fi
|