Skip to content

Instantly share code, notes, and snippets.

@pwais
Created August 6, 2015 21:59
Show Gist options
  • Select an option

  • Save pwais/b8975650fa39a7750d43 to your computer and use it in GitHub Desktop.

Select an option

Save pwais/b8975650fa39a7750d43 to your computer and use it in GitHub Desktop.
https://github.com/pwais/oarphkit/blob/master/bootstrap.py#L66
$ ./bootstrap.py --help
Usage: bootstrap.py [options]
Bootstrap OarphKit and run common development actions.
Run in the root of the Oarphkit repository. In a fresh
checkout, run:
$ ./bootstrap.py --all
To start fresh, run:
$ ./bootstrap.py --clean
Look for messages in stderr about project file locations
(e.g. for Eclipse CDT).
Notes:
* Requires internet access for --deps.
* Why not bash scripts? Python is easier to maintain today.
This script should not be hard to port (if desired) and is
adequately cross-platform at the moment.
* Tested in Python 2.7
Options:
-h, --help show this help message and exit
Config:
Configuration
--deps-dir=DEPS_DIR
Download all dependencies to this path [default
/Users/pwais/Documents/oarphkit/deps]
--build-dir=BUILD_DIR
Place all build resources here [default
/Users/pwais/Documents/oarphkit/build]
--parallel=PARALLEL
Use this build parallelism [default 8]
--build-type=BUILD_TYPE
Build this build type (e.g. Debug or Release)
--proj-dir=PROJ_DIR
Generate IDE Project files here [default projects]
--docker-tag=DOCKER_TAG
Give Docker containers this tag [default oarphkit]
Actions:
Prepare/execute common build actions
--all Equivalent to --deps --build --test --test-flix
--install-local
--clean Clear dirs: --build-dir --deps-dir --proj-dir
--deps Download, build, and test all dependencies to --deps-
dir
--build Build using local dependencies
--build-system Build using system dependencies (can skip --deps)
--test Run unit tests
--test-flix Test the FLiX executable
--install-local Install to --build-dir
--whale-test Build & run unit tests under a variety of env settings
--eclipse Generate Eclipse project
--xcode Generate XCode project
--proto-pb Regenerate Protobuf code
--proto-capnp Regenerate Captain Proto code
--indocker Drop into a Dockerized bash shell with the current
project's source mounted inside. Then, for example,
try bootstrapy.py --all to build inside Docker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment