-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start a script to run all examples. #33
- Loading branch information
1 parent
a94a3de
commit a303ce9
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
# TODO Check for tools? | ||
|
||
function run_example { | ||
echo "Running example ${1}" | ||
cd $1 | ||
|
||
# Clean up everything from previous runs | ||
rm -rf input/ intermediate/ output/ | ||
|
||
# Create input data | ||
python3 setup.py | ||
|
||
# Run the pipeline | ||
cargo run --release -- config.json | ||
|
||
cd .. | ||
} | ||
|
||
# Small ones | ||
run_example york | ||
#run_example liverpool # TODO has some manual steps | ||
|
||
# Moderate | ||
run_example edinburgh | ||
run_example london | ||
|
||
# Huge | ||
#run_example england_2011_home_to_work |