-
Notifications
You must be signed in to change notification settings - Fork 54
/
pants
executable file
·19 lines (14 loc) · 735 Bytes
/
pants
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# Copyright 2015 Foursquare Labs Inc. All Rights Reserved.
# Pass variables to children
set -ea
# TODO: The empty quotes are to avoid passing args to upkeep, need a better way to handle this.
source upkeep ''
"${BUILD_ROOT}/upkeep"
# A noop flag for tests that cover seeding the environment since Pants exits nonzero when sourced.
[[ -n "${FS_PANTS_NOOP}" ]] && exit 0
# The script below runs the pants bootstrap task and exports PANTSBINARY. Basically a noop if the pants_version
# hasn't changed. This could be hooked more properly into upkeep but we are waiting on the need to arise.
source "${BUILD_ROOT}/build-support/fsqio/upkeep/scripts/opensource-pants-env.sh"
export PYTHONPATH=src/python
"$PANTSBINARY" "$@"