-
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.
ci: Enable scripts for Travis-CI and in-house Jenkins CI
Change-Id: Ibd4c0313945d57a037e87c54c56e6047c4daed73 Refs: #2477
- Loading branch information
Showing
15 changed files
with
146 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "ChronoSync"] | ||
path = ChronoSync | ||
url = https://github.com/bruinfish/ChronoSync.git | ||
url = ../ChronoSync.git | ||
branch = master |
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,10 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
for file in "$DIR"/.jenkins.d/*; do | ||
[[ -f $file && -x $file ]] || continue | ||
echo "Run: $file" | ||
"$file" | ||
done |
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,29 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
set -e | ||
|
||
JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
source "$JDIR"/util.sh | ||
|
||
[[ -n $NODE_LABELS ]] || exit 0 | ||
|
||
if has OSX $NODE_LABELS; then | ||
brew update | ||
brew upgrade | ||
brew install boost pkg-config qt4 | ||
brew cleanup | ||
fi | ||
|
||
if has Ubuntu $NODE_LABELS; then | ||
sudo apt-get update -qq -y | ||
sudo apt-get -qq -y install build-essential | ||
sudo apt-get -qq -y install libssl-dev libsqlite3-dev | ||
|
||
if has Ubuntu-12.04 $NODE_LABELS; then | ||
sudo apt-get install -qq -y libboost1.48-all-dev | ||
else | ||
sudo apt-get install -qq -y libboost-all-dev | ||
fi | ||
|
||
sudo apt-get install -qq -y qt4-dev-tools protobuf-compiler libprotobuf-dev libqt4-sql-sqlite | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
set -e | ||
|
||
pushd /tmp >/dev/null | ||
|
||
INSTALLED_VERSION=$((cd ndn-cxx && git rev-parse HEAD) 2>/dev/null || echo NONE) | ||
sudo rm -Rf ndn-cxx-latest | ||
git clone --depth 1 git://github.com/named-data/ndn-cxx ndn-cxx-latest | ||
LATEST_VERSION=$((cd ndn-cxx-latest && git rev-parse HEAD) 2>/dev/null || echo UNKNOWN) | ||
if [[ $INSTALLED_VERSION != $LATEST_VERSION ]]; then | ||
sudo rm -Rf ndn-cxx | ||
mv ndn-cxx-latest ndn-cxx | ||
else | ||
sudo rm -Rf ndn-cxx-latest | ||
fi | ||
sudo rm -Rf /usr/local/include/ndn-cxx | ||
sudo rm -f /usr/local/lib/libndn-cxx* | ||
sudo rm -f /usr/local/lib/pkgconfig/libndn-cxx* | ||
pushd ndn-cxx >/dev/null | ||
./waf configure -j1 --color=yes --without-osx-keychain | ||
./waf -j1 --color=yes | ||
sudo ./waf install -j1 --color=yes | ||
popd >/dev/null | ||
popd >/dev/null |
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,19 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
set -e | ||
|
||
sudo rm -Rf /usr/local/include/ChronoSync | ||
sudo rm -f /usr/local/lib/libChronoSync* | ||
sudo rm -f /usr/local/lib/pkgconfig/ChronoSync* | ||
|
||
|
||
# Update ChronoSync | ||
git submodule init | ||
git submodule update | ||
pushd ChronoSync >/dev/null | ||
sudo ./waf -j1 --color=yes distclean | ||
./waf -j1 --color=yes configure | ||
./waf -j1 --color=yes build | ||
sudo ./waf install -j1 --color=yes | ||
sudo ldconfig || true | ||
popd >/dev/null |
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,20 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
set -e | ||
|
||
# Cleanup | ||
sudo ./waf -j1 --color=yes distclean | ||
|
||
# Configure/build in release mode | ||
./waf -j1 --color=yes configure | ||
./waf -j1 --color=yes build | ||
|
||
# Cleanup | ||
sudo ./waf -j1 --color=yes distclean | ||
|
||
# Configure/build in debug mode | ||
./waf -j1 --color=yes configure --debug | ||
./waf -j1 --color=yes build | ||
|
||
# Cleanup | ||
sudo ./waf -j1 --color=yes distclean |
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,9 @@ | ||
has() { | ||
local p=$1 | ||
shift | ||
local x | ||
for x in "$@"; do | ||
[[ "${x}" == "${p}" ]] && return 0 | ||
done | ||
return 1 | ||
} |
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,16 @@ | ||
# For Ubuntu platform only | ||
|
||
language: cpp | ||
os: | ||
- linux | ||
compiler: | ||
- gcc | ||
notifications: | ||
email: | ||
on_success: always | ||
on_failure: always | ||
before_install: | ||
- travis_retry sudo apt-get update | ||
- travis_retry sudo apt-get install -qq libssl-dev libprotobuf-dev protobuf-compiler libboost1.48-all-dev libcrypto++-dev libsqlite3-dev | ||
script: | ||
- ./.jenkins |
Submodule ChronoSync
updated
17 files
+3 −0 | .jenkins.d/30-test.sh | |
+3 −2 | README.md | |
+11 −11 | common.hpp | |
+12 −13 | src/interest-table.cpp | |
+5 −9 | src/interest-table.hpp | |
+156 −60 | src/logic.cpp | |
+93 −24 | src/logic.hpp | |
+87 −15 | src/socket.cpp | |
+54 −5 | src/socket.hpp | |
+1 −1 | src/state.cpp | |
+0 −307 | tests/integrated-tests/test-logic.cpp | |
+68 −0 | tests/unit-test-time-fixture.hpp | |
+14 −43 | tests/unit-tests/test-interest-table.cpp | |
+344 −0 | tests/unit-tests/test-logic.cpp | |
+104 −0 | tests/unit-tests/test-multiple-user.cpp | |
+138 −110 | tests/unit-tests/test-socket.cpp | |
+5 −5 | wscript |
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
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