-
Notifications
You must be signed in to change notification settings - Fork 110
continuous integration #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d37e00d
continuous integration
graebm 1a62810
wget -> curl
graebm 7879090
cxx
graebm ce24f0d
more fixes to CI scripts
graebm 0eded93
windows CI fixes
graebm 420660a
clang fixes
graebm 755834c
Merge branch 'ci' of github.com:awslabs/aws-iot-device-sdk-cpp-v2 int…
graebm c9d4992
Mention that aws-crt-cpp is bad at rebuilding
graebm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo "Using CC=$CC CXX=$CXX" | ||
|
||
BUILD_PATH=/tmp/builds | ||
mkdir -p $BUILD_PATH | ||
INSTALL_PATH=$BUILD_PATH/install | ||
mkdir -p $INSTALL_PATH | ||
CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$INSTALL_PATH -DCMAKE_INSTALL_PREFIX=$INSTALL_PATH $@" | ||
|
||
# If TRAVIS_OS_NAME is OSX, skip this step (will resolve to empty string on CodeBuild) | ||
if [ "$TRAVIS_OS_NAME" != "osx" ]; then | ||
sudo apt-get install libssl-dev -y | ||
fi | ||
|
||
# build aws-crt-cpp | ||
pushd $BUILD_PATH | ||
git clone --branch v0.4.0 https://github.com/awslabs/aws-crt-cpp.git | ||
cd aws-crt-cpp | ||
cmake $CMAKE_ARGS -DBUILD_DEPS=ON ./ | ||
cmake --build . --target install | ||
popd | ||
|
||
# build SDK | ||
mkdir -p build | ||
pushd build | ||
cmake $CMAKE_ARGS ../ | ||
cmake --build . --target install | ||
popd |
This file contains hidden or 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,25 @@ | ||
set CMAKE_ARGS=%* | ||
|
||
set BUILDS_DIR=%TEMP%\builds | ||
set INSTALL_DIR=%BUILDS_DIR%\install | ||
mkdir %BUILDS_DIR% | ||
mkdir %INSTALL_DIR% | ||
|
||
@rem build aws-crt-cpp | ||
mkdir %BUILDS_DIR%\aws-crt-cpp-build | ||
cd %BUILDS_DIR%\aws-crt-cpp-build | ||
git clone --branch v0.4.0 https://github.com/awslabs/aws-crt-cpp.git | ||
cmake %CMAKE_ARGS% -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%" -DCMAKE_PREFIX_PATH="%INSTALL_DIR%" -DCMAKE_BUILD_TYPE="Release" -DBUILD_DEPS=ON aws-crt-cpp || goto error | ||
cmake --build . --target install || goto error | ||
|
||
@rem build SDK | ||
mkdir %BUILDS_DIR%\aws-iot-device-sdk-cpp-v2-build | ||
cd %BUILDS_DIR%\aws-iot-device-sdk-cpp-v2-build | ||
cmake %CMAKE_ARGS% -DCMAKE_INSTALL_PREFIX="%INSTALL_DIR%" -DCMAKE_PREFIX_PATH="%INSTALL_DIR%" -DCMAKE_BUILD_TYPE="Release" %CODEBUILD_SRC_DIR% || goto error | ||
cmake --build . || goto error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error #%errorlevel%. | ||
exit /b %errorlevel% |
This file contains hidden or 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,22 @@ | ||
version: 0.2 | ||
#this buildspec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo apt-get update -y | ||
- sudo apt-get update | ||
- sudo apt-get install clang-3.9 clang-tidy-3.9 -y | ||
|
||
pre_build: | ||
commands: | ||
- export CC=clang-3.9 | ||
- export CXX=clang++-3.9 | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | ||
- clang-tidy-3.9 -p=build **/*.c | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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,25 @@ | ||
version: 0.2 | ||
#this buildspec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" | ||
- sudo apt-get update -y | ||
- sudo apt-get install clang-6.0 clang-tidy-6.0 clang-format-6.0 -y -f | ||
|
||
pre_build: | ||
commands: | ||
- export CC=clang-6.0 | ||
- export CXX=clang++-6.0 | ||
- export CLANG_FORMAT=clang-format-6.0 | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh -DCMAKE_EXPORT_COMPILE_COMMANDS=ON | ||
- ./format-check.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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 @@ | ||
version: 0.2 | ||
#this build spec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo apt-get update -y | ||
- sudo apt-get install gcc g++ -y | ||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
- export CXX=g++ | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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,36 @@ | ||
version: 0.2 | ||
#this build spec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo apt-get update -y | ||
- sudo apt-get install gcc gcc-multilib g++ g++-multilib -y | ||
# Build OpenSSL from source | ||
- mkdir libcrypto-build | ||
- cd libcrypto-build | ||
- curl -LO https://www.openssl.org/source/openssl-1.1.0j.tar.gz | ||
- tar -xzvf openssl-1.1.0j.tar.gz | ||
- cd openssl-1.1.0j | ||
- setarch i386 ./config -fPIC no-shared \ | ||
-m32 no-md2 no-rc5 no-rfc3779 no-sctp no-ssl-trace no-zlib \ | ||
no-hw no-mdc2 no-seed no-idea no-camellia\ | ||
no-bf no-ripemd no-dsa no-ssl2 no-ssl3 no-capieng \ | ||
-DSSL_FORBID_ENULL -DOPENSSL_NO_DTLS1 -DOPENSSL_NO_HEARTBEATS \ | ||
--prefix=/tmp/builds/install | ||
- make -j 12 | ||
- make install_sw | ||
- cd $CODEBUILD_SRC_DIR | ||
|
||
pre_build: | ||
commands: | ||
- export CC=gcc | ||
- export CXX=g++ | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" | ||
|
||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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 @@ | ||
version: 0.2 | ||
#this build spec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
- sudo apt-get update -y | ||
- sudo apt-get install gcc-5 g++-5 -y | ||
pre_build: | ||
commands: | ||
- export CC=gcc-5 | ||
- export CXX=g++-5 | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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 @@ | ||
version: 0.2 | ||
#this build spec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
- sudo apt-get update -y | ||
- sudo apt-get install gcc-6 g++-6 -y | ||
pre_build: | ||
commands: | ||
- export CC=gcc-6 | ||
- export CXX=g++-6 | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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 @@ | ||
version: 0.2 | ||
#this build spec assumes the ubuntu 14.04 trusty image | ||
phases: | ||
install: | ||
commands: | ||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test | ||
- sudo apt-get update -y | ||
- sudo apt-get install gcc-7 g++-7 -y | ||
pre_build: | ||
commands: | ||
- export CC=gcc-7 | ||
- export CXX=g++-7 | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- ./codebuild/common-posix.sh | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
|
This file contains hidden or 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,7 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- .\codebuild\common-windows.bat -G "Visual Studio 14 2015" | ||
|
This file contains hidden or 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,7 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- .\codebuild\common-windows.bat -G "Visual Studio 14 2015 Win64" | ||
|
This file contains hidden or 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,7 @@ | ||
version: 0.2 | ||
|
||
phases: | ||
build: | ||
commands: | ||
- .\codebuild\common-windows.bat -G "Visual Studio 15 2017 Win64" | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.