#!/bin/bash # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Script to run mach gradle in CI. # Environment variables: # GRADLE_PROJECT - path to the gradle project (e.g., mobile/android/gradle/plugins/apilint) # GRADLE_ARGS - gradle arguments (e.g., test) # MACH_BUILD_EXPORTS (optional) - set to "1" to run ./mach build pre-export export set -e set -x cd "$GECKO_PATH" mozconfig=$(mktemp) cat > "$mozconfig" <