Remove jenkins folder since all jenkins folders are now in submodules
This commit is contained in:
Родитель
f7ae84f9bd
Коммит
b0eb9bde54
|
@ -1,14 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C --
|
||||
cd %build-root%\c\build_all\arduino_cc
|
||||
call build.cmd %*
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
|
@ -1,62 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
install_root="$HOME"
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- helper subroutines
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists() {
|
||||
if hash $1 2>/dev/null;
|
||||
then
|
||||
return 1
|
||||
else
|
||||
echo "$1" not found. Please make sure that "$1" is installed and available in the path.
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for environment pre-requisites. This script requires
|
||||
# -- that the following programs work:
|
||||
# -- curl uuid g++ make cmake git unzip gawk
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists curl
|
||||
checkExists uuid
|
||||
checkExists g++
|
||||
checkExists make
|
||||
checkExists cmake
|
||||
checkExists git
|
||||
checkExists unzip
|
||||
checkExists gawk
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Run the ./setup.sh script to install the OpenWRT SDK
|
||||
# -----------------------------------------------------------------------------
|
||||
if [ ! -d "$install_root/openwrt/sdk" ];
|
||||
then
|
||||
echo ---------- Installing OpenWRT SDK by executing ./setup.sh script ----------
|
||||
cd $build_root/c/build_all/arduino
|
||||
printf 'y\ny\n' | ./setup.sh
|
||||
else
|
||||
echo ---------- OpenWRT SDK is already installed ----------
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Modify c/serializer/samples/simplesample_http/simplesample_http.c
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Modifying c/serializer/samples/simplesample_http/simplesample_http.c file ----------
|
||||
cd $build_root
|
||||
sed -i 's/\[device connection string\]/'$IOTHUB_DEVICE_CONN_STR'/g' c/serializer/samples/simplesample_http/simplesample_http.c
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Build the SDK
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Building the SDK by executing build.sh script ----------
|
||||
cd $build_root/c/build_all/arduino
|
||||
./build.sh
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,63 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
@setlocal EnableExtensions EnableDelayedExpansion
|
||||
@echo off
|
||||
|
||||
set build-root=%~dp0..
|
||||
cd %build-root%\build\docs
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- Check for environment pre-requisites. This script requires
|
||||
rem -- that the following programs work:
|
||||
rem -- doxygen, git, node, javadoc, mvn, jsdoc
|
||||
rem -----------------------------------------------------------------------------
|
||||
call :checkExists git
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists node
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists npm
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists doxygen
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists javadoc
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists mvn
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
call :checkExists jsdoc
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- Generate C API docs
|
||||
rem -----------------------------------------------------------------------------
|
||||
echo Generating C API docs
|
||||
call gen_cdocs.cmd
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- Generate JS API docs
|
||||
rem -----------------------------------------------------------------------------
|
||||
echo Generating Node JS API docs
|
||||
call gen_jsdocs.cmd
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- Generate Java API docs
|
||||
rem -----------------------------------------------------------------------------
|
||||
echo Generating Java API docs
|
||||
call gen_javadocs.cmd
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- done
|
||||
rem -----------------------------------------------------------------------------
|
||||
goto :eof
|
||||
|
||||
rem -----------------------------------------------------------------------------
|
||||
rem -- helper subroutines
|
||||
rem -----------------------------------------------------------------------------
|
||||
:checkExists
|
||||
where %~1 >nul 2>nul
|
||||
if not !ERRORLEVEL!==0 (
|
||||
echo "%~1" not found. Please make sure that "%~1" is installed and available in the path.
|
||||
exit /b !ERRORLEVEL!
|
||||
)
|
||||
goto :eof
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root/build/docs
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- helper subroutines
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists() {
|
||||
if hash $1 2>/dev/null;
|
||||
then
|
||||
return 1
|
||||
else
|
||||
echo "$1" not found. Please make sure that "$1" is installed and available in the path.
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for environment pre-requisites. This script requires
|
||||
# -- that the following programs work:
|
||||
# -- doxygen, git, node, javadoc, mvn, jsdoc
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists git
|
||||
checkExists node
|
||||
checkExists npm
|
||||
checkExists doxygen
|
||||
checkExists javadoc
|
||||
checkExists mvn
|
||||
checkExists jsdoc
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Generate C API docs
|
||||
# -----------------------------------------------------------------------------
|
||||
echo Generating C API docs
|
||||
./gen_cdocs.sh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Generate JS API docs
|
||||
# -----------------------------------------------------------------------------
|
||||
echo Generating Node JS API docs
|
||||
./gen_jsdocs.sh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Generate Java API docs
|
||||
# -----------------------------------------------------------------------------
|
||||
echo Generating Java API docs
|
||||
./gen_javadocs.sh
|
|
@ -1,116 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT
|
||||
# license. See LICENSE file in the project root for full license
|
||||
# information.
|
||||
|
||||
# Tested on Ubuntu version 14.04
|
||||
|
||||
toolchain_root="/opt/poky-edison"
|
||||
|
||||
install_root="$HOME"
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
|
||||
cd $build_root
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- helper subroutines
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists() {
|
||||
if hash $1 2>/dev/null;
|
||||
then
|
||||
return 1
|
||||
else
|
||||
echo "$1" not found. Please make sure that "$1" is installed and available in the path.
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- setup Intel edison Tool chain for cross compilation on Ubuntu
|
||||
# -- This method is not called in this script and kept only for showing the set of instructions needed to setup the cross compilation tool chain.
|
||||
# -- Tool chain is already installed on the Jenkin slave.
|
||||
# -- In future, If slave changes ,run these commands manually on new slave to setup the tool chain.
|
||||
# -----------------------------------------------------------------------------
|
||||
setupIntelEdisonToolChain() {
|
||||
|
||||
mkdir IntelEdisonSdk
|
||||
cd IntelEdisonSdk
|
||||
wget http://downloadmirror.intel.com/25028/eng/edison-sdk-linux64-ww25.5-15.zip
|
||||
unzip edison-sdk-linux64-ww25.5-15.zip
|
||||
SdkInstallScript=$(ls | grep .sh)
|
||||
printf '\n' | ./$SdkInstallScript
|
||||
DirName=$toolchain_root/$(ls $toolchain_root)
|
||||
EnvFileName=$(DirName)/$(ls $DirName | grep environment)
|
||||
source $EnvFileName
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for environment pre-requisites.
|
||||
# -- This script requires that the following programs work:
|
||||
# -- curl build-essential(g++,gcc,make) cmake git
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists curl
|
||||
checkExists g++
|
||||
checkExists gcc
|
||||
checkExists make
|
||||
checkExists cmake
|
||||
checkExists git
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for Intel Edison tool-chain (default directory).
|
||||
# -----------------------------------------------------------------------------
|
||||
if [ ! -d $toolchain_root ];
|
||||
then
|
||||
echo ---------- Intel Edison tool-chain absent ----------
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Set environment variable
|
||||
# -----------------------------------------------------------------------------
|
||||
DirName=$toolchain_root/$(ls $toolchain_root)
|
||||
cd $DirName
|
||||
cd $(ls -d */)
|
||||
cd core2-32-poky-linux
|
||||
export INTELEDISON_ROOT=$(pwd)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Create toolchain-inteledison.cmake
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Creating toolchain cmake file ----------
|
||||
FILE="$build_root/c/build_all/linux/toolchain-inteledison.cmake"
|
||||
|
||||
/bin/cat <<EOM >$FILE
|
||||
INCLUDE(CMakeForceCompiler)
|
||||
|
||||
SET(CMAKE_SYSTEM_NAME Linux) # this one is important
|
||||
SET(CMAKE_SYSTEM_VERSION 1) # this one not so much
|
||||
|
||||
# this is the location of the amd64 toolchain targeting the Intel Edison
|
||||
SET(CMAKE_C_COMPILER ${INTELEDISON_ROOT}/../x86_64-pokysdk-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.1/gcc)
|
||||
|
||||
# this is the file system root of the target
|
||||
SET(CMAKE_FIND_ROOT_PATH ${INTELEDISON_ROOT})
|
||||
|
||||
# search for programs in the build host directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
||||
# for libraries and headers in the target directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
EOM
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Modify c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Modifying c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c file ----------
|
||||
cd $build_root
|
||||
sed -i 's/\[device connection string\]/'$IOTHUB_DEVICE_CONN_STR'/g' c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Build the SDK
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Building the SDK by executing build.sh script ----------
|
||||
cd $build_root/c/build_all/linux
|
||||
./build.sh --toolchain-file toolchain-inteledison.cmake --skip-unittests --no-mqtt -cl --sysroot=$INTELEDISON_ROOT
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -- C --
|
||||
./c/build_all/linux/build.sh --run_valgrind "$@" #-x
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -- C --
|
||||
./c/build_all/linux/build.sh --skip-unittests --use-websockets "$@"
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
|
||||
# -- Java Device Client --
|
||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
|
||||
cd $build_root/java/device
|
||||
mvn verify -DskipITs=false
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
||||
# -- Java Service Client --
|
||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
|
||||
cd $build_root/java/service
|
||||
mvn verify -DskipITs=false
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
||||
# -- Java Websocket Transport Layer --
|
||||
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
|
||||
cd $build_root/java/websocket-transport-layer
|
||||
mvn verify
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
|
||||
# -- Java Device Client --
|
||||
cd $build_root/javawrapper/build_all/linux
|
||||
./build.sh
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,24 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root/node
|
||||
|
||||
# Set up links in the npm cache to ensure we're exercising all the code in
|
||||
# the repo, rather than downloading released versions of our packages from
|
||||
# npm.
|
||||
build/dev-setup.sh
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
||||
# Lint all JavaScript code and run unit + integration tests
|
||||
build/build.sh --min --integration-tests --e2e-tests
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
||||
# The 'npm link' commands in this script create symlinks to tracked repo
|
||||
# files from ignored locations (under ./node_modules). This means a call to
|
||||
# 'git clean -xdf' will delete tracked files from the repo's working
|
||||
# directory. To avoid any complications, we'll unlink everything before
|
||||
# exiting.
|
||||
build/dev-teardown.sh
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -- Python C wrapper --
|
||||
./python/build_all/linux/build.sh $*
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
call c\build_all\mbed\build.cmd %*
|
|
@ -1,33 +0,0 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
node4:
|
||||
image: nodebuild:node4
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./jenkins/node_docker/dockerfiles/aziot-node4.dockerfile
|
||||
env_file: ./env/aziot-node4.env
|
||||
node5:
|
||||
image: nodebuild:node5
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./jenkins/node_docker/dockerfiles/aziot-node5.dockerfile
|
||||
env_file: ./env/aziot-node5.env
|
||||
node6:
|
||||
image: nodebuild:node6
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./jenkins/node_docker/dockerfiles/aziot-node6.dockerfile
|
||||
env_file: ./env/aziot-node6.env
|
||||
node010:
|
||||
image: nodebuild:node010
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./jenkins/node_docker/dockerfiles/aziot-node010.dockerfile
|
||||
env_file: ./env/aziot-node010.env
|
||||
node012:
|
||||
image: nodebuild:node012
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./jenkins/node_docker/dockerfiles/aziot-node012.dockerfile
|
||||
env_file: ./env/aziot-node012.env
|
|
@ -1,31 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo ${IOTHUB_DEVICE_ID?Error \$IOTHUB_DEVICE_ID is not defined.}
|
||||
echo ${IOTHUB_DEVICE_KEY?Error \$IOTHUB_DEVICE_KEY is not defined.}
|
||||
echo ${IOTHUB_CONNECTION_STRING?Error \$IOTHUB_CONNECTION_STRING is not defined.}
|
||||
echo ${STORAGE_CONNECTION_STRING?Error \$STORAGE_CONNECTION_STRING is not defined.}
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/../.." && pwd)
|
||||
dockerdir=$build_root/jenkins/node_docker
|
||||
envdir=$dockerdir/env
|
||||
|
||||
mkdir $envdir
|
||||
|
||||
for build_container in "aziot-node010" "aziot-node012" "aziot-node4" "aziot-node5" "aziot-node6"
|
||||
do
|
||||
ENV_FILE=$envdir/$build_container.env
|
||||
echo IOTHUB_DEVICE_ID=$IOTHUB_DEVICE_ID > $ENV_FILE
|
||||
echo IOTHUB_DEVICE_KEY=$IOTHUB_DEVICE_KEY >> $ENV_FILE
|
||||
echo IOTHUB_CONNECTION_STRING=$IOTHUB_CONNECTION_STRING >> $ENV_FILE
|
||||
echo STORAGE_CONNECTION_STRING=$STORAGE_CONNECTION_STRING >> $ENV_FILE
|
||||
done
|
||||
|
||||
# Build and start all containers
|
||||
docker-compose -f $dockerdir/docker-compose.yml up --force-recreate
|
||||
|
||||
|
||||
docker-compose -f $dockerdir/docker-compose.yml ps -q | xargs docker inspect -f '{{ .Config.Image }} finished with ExitCode {{ .State.ExitCode }}'
|
||||
# Compute exit code: count the number of containers for which the exit code was not 0
|
||||
BUILD_EXIT_CODE=$(docker-compose -f $dockerdir/docker-compose.yml ps -q | xargs docker inspect -f '{{ .State.ExitCode }}' | grep -v 0 | wc -l)
|
||||
|
||||
exit $BUILD_EXIT_CODE
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/../.." && pwd)
|
||||
dockerdir=$build_root/jenkins/node_docker
|
||||
|
||||
# Stop all containers
|
||||
docker-compose -f $dockerdir/docker-compose.yml down
|
||||
|
||||
# Remove containers
|
||||
docker-compose -f $dockerdir/docker-compose.yml ps -q | xargs docker rm -f
|
||||
|
||||
# Remove temporary images used by containers
|
||||
docker images -q nodebuild | xargs docker rmi
|
|
@ -1,4 +0,0 @@
|
|||
FROM node:0.10
|
||||
COPY . /tmp/azure-iot-sdks
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
CMD /tmp/azure-iot-sdks/jenkins/linux_node.sh
|
|
@ -1,4 +0,0 @@
|
|||
FROM node:0.12
|
||||
COPY . /tmp/azure-iot-sdks
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
CMD /tmp/azure-iot-sdks/jenkins/linux_node.sh
|
|
@ -1,4 +0,0 @@
|
|||
FROM node:4
|
||||
COPY . /tmp/azure-iot-sdks
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
CMD /tmp/azure-iot-sdks/jenkins/linux_node.sh
|
|
@ -1,4 +0,0 @@
|
|||
FROM node:5
|
||||
COPY . /tmp/azure-iot-sdks
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
CMD /tmp/azure-iot-sdks/jenkins/linux_node.sh
|
|
@ -1,4 +0,0 @@
|
|||
FROM node:6
|
||||
COPY . /tmp/azure-iot-sdks
|
||||
ENV NPM_CONFIG_LOGLEVEL warn
|
||||
CMD /tmp/azure-iot-sdks/jenkins/linux_node.sh
|
|
@ -1,90 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved. Licensed under the MIT
|
||||
# license. See LICENSE file in the project root for full license
|
||||
# information.
|
||||
|
||||
# Tested on RPi2 debian verion 7.8
|
||||
|
||||
install_root="$HOME"
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- helper subroutines
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists() {
|
||||
if hash $1 2>/dev/null;
|
||||
then
|
||||
return 1
|
||||
else
|
||||
echo "$1" not found. Please make sure that "$1" is installed and available in the path.
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for environment pre-requisites. This script requires -- that
|
||||
# the following programs work: -- curl build-essential(g++,gcc,make)
|
||||
# cmake git
|
||||
# -----------------------------------------------------------------------------
|
||||
checkExists curl
|
||||
checkExists g++
|
||||
checkExists gcc
|
||||
checkExists make
|
||||
checkExists cmake
|
||||
checkExists git
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Check for RPiTools directory.
|
||||
# -----------------------------------------------------------------------------
|
||||
if [ ! -d "$install_root/RPiTools" ];
|
||||
then
|
||||
echo ---------- Raspberry Pi tool-chain absent ----------
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Set environment variable
|
||||
# -----------------------------------------------------------------------------
|
||||
cd $install_root/RPiTools/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf
|
||||
export RPI_ROOT=$(pwd)
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Create toolchain-rpi.cmake
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Creating toolchain cmake file ----------
|
||||
FILE="$build_root/c/build_all/linux/toolchain-rpi.cmake"
|
||||
|
||||
/bin/cat <<EOM >$FILE
|
||||
INCLUDE(CMakeForceCompiler)
|
||||
|
||||
SET(CMAKE_SYSTEM_NAME Linux) # this one is important
|
||||
SET(CMAKE_SYSTEM_VERSION 1) # this one not so much
|
||||
|
||||
# this is the location of the amd64 toolchain targeting the Raspberry Pi
|
||||
SET(CMAKE_C_COMPILER ${RPI_ROOT}/../bin/arm-linux-gnueabihf-gcc)
|
||||
|
||||
# this is the file system root of the target
|
||||
SET(CMAKE_FIND_ROOT_PATH ${RPI_ROOT})
|
||||
|
||||
# search for programs in the build host directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
||||
# for libraries and headers in the target directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
EOM
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Modify c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Modifying c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c file ----------
|
||||
cd $build_root
|
||||
sed -i 's/\[device connection string\]/'$IOTHUB_DEVICE_CONN_STR'/g' c/iothub_client/samples/iothub_client_sample_http/iothub_client_sample_http.c
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# -- Build the SDK
|
||||
# -----------------------------------------------------------------------------
|
||||
echo ---------- Building the SDK by executing build.sh script ----------
|
||||
cd $build_root/c/build_all/linux
|
||||
./build.sh --toolchain-file toolchain-rpi.cmake --skip-unittests --no-amqp --no-mqtt -cl --sysroot=$RPI_ROOT
|
||||
[ $? -eq 0 ] || exit $?
|
|
@ -1,105 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
|
||||
set installers-path=c:\ti
|
||||
IF [%installers-path%]==[] goto:installerspath-not-set
|
||||
|
||||
set install-root=c:\\ti
|
||||
if not exist "%install-root%" mkdir %install-root%
|
||||
|
||||
set sdkversion=1.1.0
|
||||
|
||||
rem // This Script can run for multiple TI SDK versions based on the value of the enviornment variable.
|
||||
rem // Check for enviornment variable defining CC3200 SDK version. If defined use the SDK version
|
||||
if defined CC3200_SDK_VERSION set sdkversion=%CC3200_SDK_VERSION%
|
||||
|
||||
set cc3200sdk=CC3200SDK_%sdkversion%
|
||||
|
||||
echo ********** INSTALLING CC3200 SDK **********
|
||||
if not exist "%install-root%\%cc3200sdk%" start /wait %installers-path%\CC3200SDK-%sdkversion%-windows-installer.exe --mode unattended --prefix %install-root%\%cc3200sdk%
|
||||
|
||||
echo ********** INSTALLING Tirtos Simplelink **********
|
||||
if not exist "%install-root%\tirtos_simplelink_2_14_01_20" start /wait %installers-path%\tirtos_simplelink_setupwin32_2_14_01_20.exe --mode unattended --prefix %install-root%
|
||||
|
||||
echo ********** EXTRACTING ns **********
|
||||
if not exist "%install-root%\ns_1_10_00_00_eng" powershell.exe -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('%installers-path%\ns_1_10_00_00_eng.zip', '%install-root%'); }"
|
||||
|
||||
echo ********** INSTALLING TI ARM Compiler **********
|
||||
if not exist "%install-root%\ti-cgt-arm_5.2.5" start /wait %installers-path%\ti_cgt_tms470_5.2.5_windows_installer.exe --mode unattended --prefix %install-root%
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C --
|
||||
cd /d %build-root%\c\build_all\tirtos
|
||||
|
||||
@echo off
|
||||
echo ********** UPDATING products.mak **********
|
||||
call:DoReplace "c:\\ti\\xdctools_3_31_01_33_core" "%install-root%\\xdctools_3_31_01_33_core" products.mak
|
||||
call:DoReplace "c:\\ti/tirtos_simplelink_2_14_01_20" "%install-root%/tirtos_simplelink_2_14_01_20" products.mak
|
||||
call:DoReplace "bios_6_42_02_29" "bios_6_42_02_29" products.mak
|
||||
call:DoReplace "c:\\ti/ns_1_10_00_00_eng" "%install-root%/ns_1_10_00_00_eng" products.mak
|
||||
call:DoReplace "c:\\ti/CC3200SDK_1.1.0/cc3200-sdk" "%install-root%/%cc3200sdk%/cc3200-sdk" products.mak
|
||||
call:DoReplace "c:\\ti/ti-cgt-arm_5.2.5" "%install-root%/ti-cgt-arm_5.2.5" products.mak
|
||||
call:DoReplace "CC3200SDK_VERSION = 1.1.0" "CC3200SDK_VERSION = %sdkversion%" products.mak
|
||||
|
||||
@echo on
|
||||
call %install-root%\\xdctools_3_31_01_33_core\\gmake.exe clean
|
||||
call %install-root%\\xdctools_3_31_01_33_core\\gmake.exe all
|
||||
|
||||
cd /d %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200
|
||||
|
||||
@echo off
|
||||
echo ********** UPDATING %build-root%\c\serializer\samples\simplesample_http\simplesample_http.c **********
|
||||
call:DoReplace "[device connection string]" "%DEVICE_CONNECTION_STRING%" %build-root%\c\serializer\samples\simplesample_http\simplesample_http.c
|
||||
|
||||
@echo off
|
||||
echo ********** UPDATING %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c **********
|
||||
for /F "tokens=1-4 delims=/ " %%a in ('echo %DATE%') do (
|
||||
set month=%%b
|
||||
set day=%%c
|
||||
set year=%%d
|
||||
)
|
||||
for /F "tokens=1-4 delims=:. " %%a in ('echo %TIME%') do (
|
||||
set hour=%%a
|
||||
set minute=%%b
|
||||
set second=%%c
|
||||
)
|
||||
call:DoReplace "#define DAY 15" "#define DAY %day%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
call:DoReplace "#define MONTH 9" "#define MONTH %month%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
call:DoReplace "#define YEAR 2015" "#define YEAR %year%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
call:DoReplace "#define HOUR 6" "#define HOUR %hour%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
call:DoReplace "#define MINUTE 21" "#define MINUTE %minute%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
call:DoReplace "#define SECOND 0" "#define SECOND %second%" %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\main.c
|
||||
|
||||
echo ********** DOWNLOADING elf2cc32.exe **********
|
||||
if not exist "%build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\tools" mkdir %build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\tools
|
||||
powershell.exe -nologo -noprofile -command "& {Add-Type -A 'System.Net'; (new-object System.Net.WebClient).DownloadFile('https://github.com/tisb-vikram/azure-iot-sdks/blob/7da24633b2c4af3bc779998e9950146f061a8a10/c/serializer/samples/simplesample_http/tirtos/cc3200/tools/elf2cc32.exe?raw=true','%build-root%\c\serializer\samples\simplesample_http\tirtos\cc3200\tools\elf2cc32.exe'); }"
|
||||
if not exist "%install-root%\ns_1_10_00_00_eng\tools" mkdir %install-root%\ns_1_10_00_00_eng\tools
|
||||
powershell.exe -nologo -noprofile -command "& {Add-Type -A 'System.Net'; (new-object System.Net.WebClient).DownloadFile('https://github.com/tisb-vikram/azure-iot-sdks/blob/7da24633b2c4af3bc779998e9950146f061a8a10/c/serializer/samples/simplesample_http/tirtos/cc3200/tools/elf2cc32.exe?raw=true','%install-root%\ns_1_10_00_00_eng\tools\elf2cc32.exe'); }"
|
||||
|
||||
set PATH=%PATH%;%install-root%\xdctools_3_31_01_33_core;%install-root%\xdctools_3_31_01_33_core\bin
|
||||
|
||||
@echo on
|
||||
call %install-root%\xdctools_3_31_01_33_core\gmake.exe clean
|
||||
call %install-root%\xdctools_3_31_01_33_core\gmake.exe all
|
||||
|
||||
@echo off
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
||||
goto:eof
|
||||
|
||||
:DoReplace
|
||||
echo ^(Get-Content "%3"^).replace^(%1, %2^) ^| Set-Content %3>Rep.ps1
|
||||
Powershell.exe -executionpolicy ByPass -File Rep.ps1
|
||||
if exist Rep.ps1 del Rep.ps1
|
||||
goto:eof
|
||||
|
||||
:installerspath-not-set
|
||||
echo installers-path variable not set in script
|
||||
goto:eof
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
build_root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
cd $build_root
|
||||
|
||||
# -- C --
|
||||
./c/build_all/linux/build.sh --run_valgrind --run-e2e-tests "$@" #-x
|
||||
[ $? -eq 0 ] || exit $?
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C --
|
||||
cd %build-root%\c\build_all\windows
|
||||
call build.cmd --run-e2e-tests --build-traceabilitytool %*
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
|
@ -1,26 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C# --
|
||||
cd %build-root%\csharp\device\build
|
||||
call build.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
||||
|
||||
REM -- C# Service SDK --
|
||||
cd %build-root%\csharp\service\build
|
||||
call build.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
||||
|
||||
REM -- Device Explorer --
|
||||
cd %build-root%\tools\DeviceExplorer\build
|
||||
call build.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
|
@ -1,14 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C# --
|
||||
cd %build-root%\csharp\device\build
|
||||
call build_mf.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
|
@ -1,26 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- Java Device Client --
|
||||
cd %build-root%\java\device
|
||||
call mvn verify -DskipITs=false
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
||||
|
||||
REM -- Java Service Client --
|
||||
cd %build-root%\java\service
|
||||
call mvn verify -DskipITs=false
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
||||
|
||||
REM -- Websocket Transport Layer --
|
||||
cd %build-root%\java\websocket-transport-layer
|
||||
call mvn verify
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
|
@ -1,14 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
@setlocal EnableExtensions EnableDelayedExpansion
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- JavaWrapper --
|
||||
cd %build-root%\javawrapper\build_all\windows
|
||||
call build_client.cmd %*
|
||||
if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
|
||||
cd %build-root%
|
|
@ -1,29 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
@setlocal
|
||||
@echo off
|
||||
|
||||
set build-root=%~dp0..
|
||||
REM Resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
cd %build-root%\node
|
||||
|
||||
REM Set up links in the npm cache to ensure we're exercising all the code in
|
||||
REM the repo, rather than downloading released versions of our packages from
|
||||
REM npm.
|
||||
call build\dev-setup.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
|
||||
REM Lint all JavaScript code and run unit + integration tests
|
||||
call build\build.cmd --min --integration-tests --e2e-tests
|
||||
if errorlevel 1 goto :eof
|
||||
|
||||
REM The 'npm link' commands in this script create symlinks to tracked repo
|
||||
REM files from ignored locations (under ./node_modules). This means a call to
|
||||
REM 'git clean -xdf' will delete tracked files from the repo's working
|
||||
REM directory. To avoid any complications, we'll unlink everything before
|
||||
REM exiting.
|
||||
call build\dev-teardown.cmd
|
||||
if errorlevel 1 goto :eof
|
|
@ -1,17 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- Python --
|
||||
cd %build-root%\python\build_all\windows
|
||||
echo Building client using cmake
|
||||
call build_client.cmd %2 %3
|
||||
|
||||
if errorlevel 1 exit /b 1
|
||||
cd %build-root%
|
|
@ -1,14 +0,0 @@
|
|||
@REM Copyright (c) Microsoft. All rights reserved.
|
||||
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
setlocal
|
||||
|
||||
set build-root=%~dp0..
|
||||
rem // resolve to fully qualified path
|
||||
for %%i in ("%build-root%") do set build-root=%%~fi
|
||||
|
||||
REM -- C --
|
||||
cd %build-root%\c\build_all\windowsce
|
||||
call build.cmd
|
||||
if errorlevel 1 goto :eof
|
||||
cd %build-root%
|
Загрузка…
Ссылка в новой задаче