-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e237ff
commit fe67385
Showing
5 changed files
with
12 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
# This script is for CI Server | ||
echo "clean up" | ||
rm -rf .build | ||
rm -rf Package.pins | ||
rm -rf Package.resolved | ||
time swift build | ||
echo "build release" | ||
time swift build -c release | ||
echo "perform test" | ||
time swift test > test-results.txt | ||
cat test-results.txt |
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,10 +1,16 @@ | ||
#!/bin/bash | ||
OSABR=$(echo $(uname)|tr '[:upper:]' '[:lower:]') | ||
DWN=/tmp/libtensorflow.tgz | ||
if [ -z "$1" ] | ||
then | ||
LOC=/usr/local | ||
else | ||
LOC=$1 | ||
fi | ||
VERSION=`cat VERSION` | ||
URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-$VERSION.tar.gz | ||
echo $URL | ||
curl $URL -o $DWN | ||
echo "installing binaries ..." | ||
tar xf $DWN -C /usr/local ./lib/libtensorflow.so ./lib/libtensorflow_framework.so | ||
tar xf $DWN -C $LOC ./lib/libtensorflow.so ./lib/libtensorflow_framework.so | ||
rm -f $DWN |
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,3 +1,3 @@ | ||
#!/bin/bash | ||
# This script is for CI Server | ||
./install.sh && ./prepare.sh && ./cleantest.sh | ||
./prepare.sh && ./install.sh /tmp/testdata && ./cleantest.sh |