Skip to content

Commit

Permalink
Separated build, test and run for run_x.sh scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbaldridge committed Aug 17, 2020
1 parent 6040049 commit 9dc5d16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 5 additions & 0 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Check the types in everything.
pytype cabby

# Build everything
bazel query cabby/... | xargs bazel build
12 changes: 4 additions & 8 deletions run_all.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
# Check the types in everything.
pytype cabby

# Build, test and run the cabby.rvs subpackage.
# RVS
bazel build cabby/rvs:*
bazel query cabby/rvs:* | xargs bazel test
bazel-bin/cabby/rvs/generate_rvs --ref_poi "Empire State Building" --goal_poi "pharmacy"

# Build, test and run the cabby.geo subpackage.
bazel build cabby/geo:*
bazel query cabby/geo:* | xargs bazel test
# Geo
bazel-bin/cabby/geo/geo_computation --orig_lat 40.749102 --orig_lon -73.984076 -dest_lat 40.748432 --dest_lon -73.982473
bazel-bin/cabby/geo/map_processing/map_processor --region Pittsburgh --level 18
bazel-bin/cabby/geo/map_processing/map_processor --region Manhattan --level 18

# This isn't working.
# bazel-bin/cabby/geo/map_processing/map_processor --region Manhattan --level 18

# Build, test and run the cabby.geo subpackage.
# Wikidata
bazel test cabby/data/wikidata:query_test
bazel build cabby/data/wikidata/extract_geofenced_wikidata_items
bazel-bin/cabby/data/wikidata/extract_geofenced_wikidata_items --region Pittsburgh
Expand Down
1 change: 1 addition & 0 deletions test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel query cabby/... | xargs bazel test

0 comments on commit 9dc5d16

Please sign in to comment.