forked from BVLC/caffe
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore "red X" build failures in Travis
- Loading branch information
1 parent
15538f8
commit 4ce6e43
Showing
5 changed files
with
73 additions
and
75 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 was deleted.
Oops, something went wrong.
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,22 +1,33 @@ | ||
#!/bin/bash | ||
# Script called by Travis to do a CPU-only build of and test Caffe. | ||
|
||
set -e | ||
MAKE="make --jobs=$NUM_THREADS --keep-going" | ||
|
||
if $WITH_CMAKE; then | ||
mkdir build | ||
cd build | ||
cmake -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DCPU_ONLY=ON .. | ||
make --keep-going | ||
make runtest | ||
make lint | ||
make clean | ||
$MAKE | ||
if ! $WITH_CUDA; then | ||
$MAKE runtest | ||
$MAKE lint | ||
fi | ||
$MAKE clean | ||
cd - | ||
else | ||
export CPU_ONLY=1 | ||
make --keep-going all test pycaffe warn lint | ||
make runtest | ||
make all | ||
make test | ||
make pycaffe | ||
make warn | ||
make lint | ||
if ! $WITH_CUDA; then | ||
export CPU_ONLY=1 | ||
fi | ||
$MAKE all test pycaffe warn lint || true | ||
if ! $WITH_CUDA; then | ||
$MAKE runtest | ||
fi | ||
$MAKE all | ||
$MAKE test | ||
$MAKE pycaffe | ||
$MAKE warn | ||
if ! $WITH_CUDA; then | ||
$MAKE lint | ||
fi | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
mv Makefile.config.example Makefile.config | ||
|
||
if $WITH_CUDA; then | ||
|