-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Travis config to do TF and PyTorch builds in parallel
- Loading branch information
Showing
6 changed files
with
50 additions
and
27 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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/bash | ||
|
||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm raster-vision-cpu coverage xml | ||
docker run -e CODECOV_TOKEN=$CODECOV_TOKEN -v $(pwd):$(pwd) --rm raster-vision-cpu codecov --root=$(pwd) --commit=$TRAVIS_COMMIT | ||
source .travis/env | ||
|
||
if [ "$IMAGE_TYPE" = "tf" ]; then | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm ${TF_CPU_IMAGE} coverage xml | ||
docker run -e CODECOV_TOKEN=$CODECOV_TOKEN -v $(pwd):$(pwd) --rm ${TF_CPU_IMAGE} codecov --root=$(pwd) --commit=$TRAVIS_COMMIT | ||
fi |
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Check no uncompiled protobufs | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/compile | ||
if [ ! -z "$(git status --porcelain)" ]; then | ||
echo "Protobuf files need to be compiled. Run scripts/compile." | ||
exit 1 | ||
fi | ||
source .travis/env | ||
|
||
if [ "$IMAGE_TYPE" = "tf" ]; then | ||
# Check no uncompiled protobufs | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it ${TF_CPU_IMAGE} $(pwd)/scripts/compile | ||
if [ ! -z "$(git status --porcelain)" ]; then | ||
echo "Protobuf files need to be compiled. Run scripts/compile." | ||
exit 1 | ||
fi | ||
|
||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu rm -f $(pwd)/.coverage $(pwd)/coverage.xml | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/style_tests && \ | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/unit_tests && \ | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it raster-vision-cpu $(pwd)/scripts/integration_tests | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it ${TF_CPU_IMAGE} rm -f $(pwd)/.coverage $(pwd)/coverage.xml | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it ${TF_CPU_IMAGE} $(pwd)/scripts/style_tests | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it ${TF_CPU_IMAGE} $(pwd)/scripts/unit_tests | ||
docker run -w $(pwd) -v $(pwd):$(pwd) --rm -it ${TF_CPU_IMAGE} $(pwd)/scripts/integration_tests | ||
fi |