hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [50/51] [abbrv] [partial] incubator-hawq git commit: HAWQ-735. Import thrift-0.9.3 into depends/thirdparty/thrift folder
Date Wed, 18 May 2016 02:51:03 GMT
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/ImportLog
----------------------------------------------------------------------
diff --git a/depends/thirdparty/ImportLog b/depends/thirdparty/ImportLog
new file mode 100644
index 0000000..06b1ae0
--- /dev/null
+++ b/depends/thirdparty/ImportLog
@@ -0,0 +1,2 @@
+2016-05-16
+  * import thrift(with version 0.9.3) from https://github.com/apache/thrift/archive/0.9.3.tar.gz

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/thrift/.clang-format
----------------------------------------------------------------------
diff --git a/depends/thirdparty/thrift/.clang-format b/depends/thirdparty/thrift/.clang-format
new file mode 100644
index 0000000..a62eef8
--- /dev/null
+++ b/depends/thirdparty/thrift/.clang-format
@@ -0,0 +1,56 @@
+---
+Language:        Cpp
+# BasedOnStyle:  LLVM
+AccessModifierOffset: -2
+ConstructorInitializerIndentWidth: 2
+AlignEscapedNewlinesLeft: false
+AlignTrailingComments: true
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortBlocksOnASingleLine: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: Inline
+AlwaysBreakTemplateDeclarations: true
+AlwaysBreakBeforeMultilineStrings: true
+BreakBeforeBinaryOperators: true
+BreakBeforeTernaryOperators: true
+BreakConstructorInitializersBeforeComma: false
+BinPackParameters: false
+ColumnLimit:     100
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
+DerivePointerAlignment: false
+IndentCaseLabels: false
+IndentWrappedFunctionNames: false
+IndentFunctionDeclarationAfterType: false
+MaxEmptyLinesToKeep: 1
+KeepEmptyLinesAtTheStartOfBlocks: true
+NamespaceIndentation: None
+ObjCSpaceAfterProperty: false
+ObjCSpaceBeforeProtocolList: true
+PenaltyBreakBeforeFirstCallParameter: 190
+PenaltyBreakComment: 300
+PenaltyBreakString: 10000
+PenaltyBreakFirstLessLess: 120
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 1200
+PointerAlignment: Left
+SpacesBeforeTrailingComments: 1
+Cpp11BracedListStyle: true
+Standard:        Auto
+IndentWidth:     2
+TabWidth:        4
+UseTab:          Never
+BreakBeforeBraces: Attach
+SpacesInParentheses: false
+SpacesInAngles:  false
+SpaceInEmptyParentheses: false
+SpacesInCStyleCastParentheses: false
+SpacesInContainerLiterals: true
+SpaceBeforeAssignmentOperators: true
+ContinuationIndentWidth: 4
+CommentPragmas:  '^ IWYU pragma:'
+ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
+SpaceBeforeParens: ControlStatements
+DisableFormat:   false
+...
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/thrift/.editorconfig
----------------------------------------------------------------------
diff --git a/depends/thirdparty/thrift/.editorconfig b/depends/thirdparty/thrift/.editorconfig
new file mode 100755
index 0000000..3611762
--- /dev/null
+++ b/depends/thirdparty/thrift/.editorconfig
@@ -0,0 +1,112 @@
+#
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements. See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership. The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License. You may obtain a copy of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied. See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+#
+
+# EditorConfig: http://editorconfig.org
+# see doc/coding_standards.md
+
+root = true
+
+[*]
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+# ActionScript
+# [*.as]
+
+# C
+# [*.c]
+
+# C++
+[*.cpp]
+indent_style = space
+indent_size = 2
+
+# C-Sharp
+# [*.cs]
+
+# D
+# [*.d]
+
+# Erlang
+# [*.erl]
+
+# Go-lang
+[*.go]
+indent_style = tab
+indent_size = 8
+
+# C header files
+# [*.h]
+
+# Haskell
+# [*.hs]
+
+# Haxe
+# [*.hx]
+
+# Java
+# [*.java]
+
+# Javascript
+[*.js]
+indent_style = space
+indent_size = 2
+
+# JSON
+[*.json]
+indent_style = space
+indent_size = 2
+
+# Lua
+# [*.lua]
+
+[*.markdown]
+indent_style = space
+trim_trailing_whitespace = false
+
+[*.md]
+indent_style = space
+trim_trailing_whitespace = false
+
+# OCaml
+# [*.ml]
+
+# Delphi Pascal
+# [*.pas]
+
+# PHP
+# [*.php]
+
+# Perl
+# [*.pm]
+
+# Python
+# [*.py]
+
+# Ruby
+# [*.rb]
+
+# Typescript
+# [*.ts]
+
+# XML
+# [*.xml]

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/thrift/.gitattributes
----------------------------------------------------------------------
diff --git a/depends/thirdparty/thrift/.gitattributes b/depends/thirdparty/thrift/.gitattributes
new file mode 100644
index 0000000..176a458
--- /dev/null
+++ b/depends/thirdparty/thrift/.gitattributes
@@ -0,0 +1 @@
+* text=auto

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/thrift/.gitignore
----------------------------------------------------------------------
diff --git a/depends/thirdparty/thrift/.gitignore b/depends/thirdparty/thrift/.gitignore
new file mode 100644
index 0000000..4219468
--- /dev/null
+++ b/depends/thirdparty/thrift/.gitignore
@@ -0,0 +1,279 @@
+# generic ignores
+*.la
+*.lo
+*.o
+*.deps
+*.dirstamp
+*.libs
+*.log
+*.trs
+*.suo
+*.pyc
+*.cache
+*.user
+*.ipch
+*.sdf
+*.jar
+*.exe
+*.dll
+*_ReSharper*
+*.opensdf
+*.swp
+*.hi
+*~
+
+.*project
+junit*.properties
+.idea
+gen-*
+Makefile
+Makefile.in
+aclocal.m4
+acinclude.m4
+autom4te.cache
+cmake-*
+node_modules
+compile
+test-driver
+
+.sonar
+.DS_Store
+.svn
+.vagrant
+
+/contrib/.vagrant/
+/aclocal/libtool.m4
+/aclocal/lt*.m4
+/autoscan.log
+/autoscan-*.log
+/compiler/cpp/Debug
+/compiler/cpp/Release
+/compiler/cpp/libparse.a
+/compiler/cpp/src/thriftl.cc
+/compiler/cpp/src/thrifty.cc
+/compiler/cpp/src/thrifty.hh
+/compiler/cpp/src/windows/version.h
+/compiler/cpp/thrift
+/compiler/cpp/thriftl.cc
+/compiler/cpp/thrifty.cc
+/compiler/cpp/lex.yythriftl.cc
+/compiler/cpp/thrifty.h
+/compiler/cpp/thrifty.hh
+/compiler/cpp/version.h
+/config.*
+/configure
+/configure.lineno
+/configure.scan
+/contrib/fb303/config.cache
+/contrib/fb303/config.log
+/contrib/fb303/config.status
+/contrib/fb303/configure
+/contrib/fb303/cpp/libfb303.a
+/contrib/fb303/java/build/
+/contrib/fb303/py/build/
+/contrib/fb303/py/fb303/FacebookService-remote
+/contrib/fb303/py/fb303/FacebookService.py
+/contrib/fb303/py/fb303/__init__.py
+/contrib/fb303/py/fb303/constants.py
+/contrib/fb303/py/fb303/ttypes.py
+/depcomp
+/install-sh
+/lib/cpp/Debug/
+/lib/cpp/Debug-mt/
+/lib/cpp/Release/
+/lib/cpp/Release-mt/
+/lib/cpp/src/thrift/qt/moc_TQTcpServer.cpp
+/lib/cpp/src/thrift/qt/moc__TQTcpServer.cpp
+/lib/cpp/src/thrift/config.h
+/lib/cpp/src/thrift/stamp-h2
+/lib/cpp/test/Benchmark
+/lib/cpp/test/AllProtocolsTest
+/lib/cpp/test/DebugProtoTest
+/lib/cpp/test/DenseProtoTest
+/lib/cpp/test/EnumTest
+/lib/cpp/test/JSONProtoTest
+/lib/cpp/test/OptionalRequiredTest
+/lib/cpp/test/SecurityTest
+/lib/cpp/test/SpecializationTest
+/lib/cpp/test/ReflectionTest
+/lib/cpp/test/RecursiveTest
+/lib/cpp/test/TFDTransportTest
+/lib/cpp/test/TFileTransportTest
+/lib/cpp/test/TInterruptTest
+/lib/cpp/test/TNonblockingServerTest
+/lib/cpp/test/TPipedTransportTest
+/lib/cpp/test/TServerIntegrationTest
+/lib/cpp/test/TSocketInterruptTest
+/lib/cpp/test/TransportTest
+/lib/cpp/test/UnitTests
+/lib/cpp/test/ZlibTest
+/lib/cpp/test/OpenSSLManualInitTest
+/lib/cpp/test/concurrency_test
+/lib/cpp/test/link_test
+/lib/cpp/test/processor_test
+/lib/cpp/test/tests.xml
+/lib/cpp/concurrency_test
+/lib/cpp/*.pc
+/lib/cpp/x64/Debug/
+/lib/cpp/x64/Debug-mt/
+/lib/cpp/x64/Release
+/lib/cpp/x64/Release-mt
+/lib/c_glib/*.gcda
+/lib/c_glib/*.gcno
+/lib/c_glib/*.loT
+/lib/c_glib/test/*.gcno
+/lib/c_glib/test/testwrapper.sh
+/lib/c_glib/test/testwrapper-test*
+/lib/c_glib/test/testapplicationexception
+/lib/c_glib/test/testbinaryprotocol
+/lib/c_glib/test/testbufferedtransport
+/lib/c_glib/test/testcontainertest
+/lib/c_glib/test/testdebugproto
+/lib/c_glib/test/testframedtransport
+/lib/c_glib/test/testmemorybuffer
+/lib/c_glib/test/testoptionalrequired
+/lib/c_glib/test/testsimpleserver
+/lib/c_glib/test/teststruct
+/lib/c_glib/test/testthrifttest
+/lib/c_glib/test/testthrifttestclient
+/lib/c_glib/test/testtransportsocket
+/lib/c_glib/thriftc.pc
+/lib/c_glib/thrift_c_glib.pc
+/lib/csharp/**/bin/
+/lib/csharp/**/obj/
+/lib/d/libthriftd.a
+/lib/d/test/serialization_benchmark
+/lib/d/test/transport_test
+/lib/d/unittest/
+/lib/delphi/src/*.dcu
+/lib/delphi/test/*.identcache
+/lib/delphi/test/*.local
+/lib/delphi/test/*.dcu
+/lib/delphi/test/*.2007
+/lib/delphi/test/*.dproj
+/lib/delphi/test/*.dproj
+/lib/delphi/test/codegen/*.bat
+/lib/delphi/test/skip/*.local
+/lib/delphi/test/skip/*.identcache
+/lib/delphi/test/skip/*.identcache
+/lib/delphi/test/skip/*.dproj
+/lib/delphi/test/skip/*.dproj
+/lib/delphi/test/skip/*.2007
+/lib/delphi/test/serializer/*.identcache
+/lib/delphi/test/serializer/*.dproj
+/lib/delphi/test/serializer/*.local
+/lib/delphi/test/serializer/*.2007
+/lib/delphi/test/serializer/*.dcu
+/lib/delphi/test/multiplexed/*.dproj
+/lib/delphi/test/multiplexed/*.2007
+/lib/delphi/test/multiplexed/*.local
+/lib/delphi/test/multiplexed/*.identcache
+/lib/delphi/test/multiplexed/*.dcu
+/lib/delphi/test/typeregistry/*.2007
+/lib/delphi/test/typeregistry/*.dproj
+/lib/delphi/test/typeregistry/*.identcache
+/lib/delphi/test/typeregistry/*.local
+/lib/delphi/test/typeregistry/*.dcu
+/lib/erl/.generated
+/lib/erl/.eunit
+/lib/erl/ebin
+/lib/erl/deps/
+/lib/haxe/test/bin
+/lib/hs/dist
+/lib/java/build
+/lib/js/test/build
+/lib/nodejs/coverage
+/lib/nodejs/node_modules/
+/lib/perl/MANIFEST
+/lib/perl/MYMETA.json
+/lib/perl/MYMETA.yml
+/lib/perl/Makefile-perl.mk
+/lib/perl/blib
+/lib/perl/pm_to_blib
+/lib/py/build
+/lib/py/thrift.egg-info/
+/lib/rb/Gemfile.lock
+/lib/rb/debug_proto_test
+/lib/rb/.config
+/lib/rb/ext/conftest.dSYM/
+/lib/rb/ext/mkmf.log
+/lib/rb/ext/thrift_native.bundle
+/lib/rb/ext/thrift_native.so
+/lib/rb/test/
+/lib/rb/thrift-*.gem
+/lib/php/src/ext/thrift_protocol/Makefile.*
+/lib/php/src/ext/thrift_protocol/build/
+/lib/php/src/ext/thrift_protocol/config.*
+/lib/php/src/ext/thrift_protocol/configure
+/lib/php/src/ext/thrift_protocol/configure.in
+/lib/php/src/ext/thrift_protocol/install-sh
+/lib/php/src/ext/thrift_protocol/libtool
+/lib/php/src/ext/thrift_protocol/ltmain.sh
+/lib/php/src/ext/thrift_protocol/missing
+/lib/php/src/ext/thrift_protocol/mkinstalldirs
+/lib/php/src/ext/thrift_protocol/modules/
+/lib/php/src/ext/thrift_protocol/php_thrift_protocol.lo
+/lib/php/src/ext/thrift_protocol/run-tests.php
+/lib/php/src/ext/thrift_protocol/thrift_protocol.la
+/lib/php/src/ext/thrift_protocol/tmp-php.ini
+/lib/php/src/packages/
+/lib/php/test/TEST-*.xml
+/lib/php/test/packages/
+/lib/py/dist/
+/lib/erl/logs/
+/lib/go/test/gopath/
+/lib/go/test/ThriftTest.thrift
+/libtool
+/ltmain.sh
+/missing
+/node_modules/
+/stamp-h1
+/test/results.json
+/test/c_glib/test_client
+/test/c_glib/test_server
+/test/cpp/StressTest
+/test/cpp/StressTestNonBlocking
+/test/cpp/TestClient
+/test/cpp/TestServer
+/test/log/
+/test/test.log
+/test/erl/.eunit/
+/test/erl/.generated
+/test/go/bin/
+/test/go/ThriftTest.thrift
+/test/go/gopath
+/test/go/pkg/
+/test/go/src/code.google.com/
+/test/go/src/github.com/golang/
+/test/go/src/gen/
+/test/go/src/thrift
+/test/haxe/bin
+/test/hs/TestClient
+/test/hs/TestServer
+/test/py.twisted/_trial_temp/
+/test/rb/Gemfile.lock
+/tutorial/cpp/TutorialClient
+/tutorial/cpp/TutorialServer
+/tutorial/c_glib/tutorial_client
+/tutorial/c_glib/tutorial_server
+/tutorial/delphi/*.dsk
+/tutorial/delphi/*.local
+/tutorial/delphi/*.tvsconfig
+/tutorial/delphi/DelphiClient/dcu
+/tutorial/delphi/DelphiServer/dcu
+/tutorial/delphi/DelphiClient/*.local
+/tutorial/delphi/DelphiClient/*.identcache
+/tutorial/delphi/DelphiServer/*.identcache
+/tutorial/delphi/DelphiServer/*.local
+/tutorial/go/go-tutorial
+/tutorial/go/calculator-remote
+/tutorial/go/src/shared
+/tutorial/go/src/tutorial
+/tutorial/go/src/git.apache.org
+/tutorial/haxe/bin
+/tutorial/hs/dist/
+/tutorial/java/build/
+/tutorial/js/build/
+/ylwrap
+
+/cmake_*

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d709f67d/depends/thirdparty/thrift/.travis.yml
----------------------------------------------------------------------
diff --git a/depends/thirdparty/thrift/.travis.yml b/depends/thirdparty/thrift/.travis.yml
new file mode 100644
index 0000000..587d795
--- /dev/null
+++ b/depends/thirdparty/thrift/.travis.yml
@@ -0,0 +1,188 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# build Apache Thrift on Travis CI - https://travis-ci.org/
+
+language: cpp
+
+sudo: required
+
+cache:
+ - apt
+ - npm
+ - maven
+
+compiler:
+  - clang
+  - gcc
+
+before_install:
+  - sh build/travis/installCXXDependencies.sh
+  - if [ "$ALL_DEPS" != "no" ] ; then sh build/travis/installDependencies.sh 1> /dev/null
; fi
+  - if [ "$ALL_DEPS" != "no" ] ; then export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
; fi
+  - if [ "$ALL_DEPS" != "no" ] ; then cabal update ; fi
+  # Disabling any cabal concurrent jobs to workaround GHC crashes due to out of memory.
+  # We can safely remove this to speed up cabal install, once Travis infrastructure is upgraded.
+  - if [ "$ALL_DEPS" != "no" ] ; then sed -i 's/^\s*jobs\s*:\s*\$ncpus\s*$/jobs:1/g' $HOME/.cabal/config
&& cat $HOME/.cabal/config | grep jobs ; fi
+
+
+script:
+  - if [ "x$CMAKE_CONFIG" != "xnone" ] ; then mkdir cmake_build && cd cmake_build
&& cmake -GNinja -DQT_MOC_EXECUTABLE="moq-qt5" $CMAKE_CONFIG $TRAVIS_BUILD_DIR ; fi
+  - if [ "x$CMAKE_CONFIG" != "xnone" ] ; then ninja ; fi
+  - if [ "x$CMAKE_CONFIG" != "xnone" ] ; then cpack ; cd $TRAVIS_BUILD_DIR ; fi
+  - if [ "x$CONFIG" != "xnone" ] ; then sh bootstrap.sh ; fi
+  - if [ "x$CONFIG" != "xnone" ] ; then sh configure $CONFIG ; fi
+  - if [ "x$CONFIG" != "xnone" ] ; then make $MAKE_TARGET -j2 ; fi
+
+after_failure:
+  - if [ "x$ERROR_LOG" != "xnone" ] ; then cat $ERROR_LOG ; fi
+
+env:
+  global:
+    - TEST_NAME=""
+    - CMAKE_CONFIG="none"
+    - CONFIG="none"
+    - MAKE_TARGET="check"
+    - ALL_DEPS="no"
+    - GHCVER=7.8.3
+    - ERROR_LOG="none"
+
+  matrix:
+    # Put it here because it's most time consuming
+    - TEST_NAME="make cross (automake)"
+      THRIFT_CROSSTEST_CONCURRENCY=6
+      CONFIG="--enable-tutorial=no --without-erlang --without-lua --without-haxe --without-d"
+      ALL_DEPS="yes"
+      MAKE_TARGET="cross"
+      ERROR_LOG="test/log/unexpected_failures.log"
+
+    # CMake builds
+    - TEST_NAME="compiler (CMake + CPack)"
+      CMAKE_CONFIG="-DBUILD_COMPILER=ON -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF"
+    - TEST_NAME="all (CMake + CPack)"
+      CMAKE_CONFIG=""
+      ALL_DEPS="yes"
+    - TEST_NAME="C++/boost-threads (CMake + CPack)"
+      CMAKE_CONFIG="-DWITH_C_GLIB=OFF -DWITH_JAVA=OFF -DWITH_BOOSTTHREADS=ON"
+    - TEST_NAME="C++/std-threads (CMake + CPack)"
+      CMAKE_CONFIG="-DCMAKE_CXX_FLAGS=-std=c++0x -DWITH_C_GLIB=OFF -DWITH_JAVA=OFF -DWITH_STDTHREADS=ON"
+    - TEST_NAME="compiler (mingw32-gcc, CMake + CPack)"
+      CMAKE_CONFIG="-DCMAKE_TOOLCHAIN_FILE=../build/cmake/mingw32-toolchain.cmake -DBUILD_COMPILER=ON
-DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF"
+
+    # Autotool builds
+    # TODO: Remove them as migration is made
+    - TEST_NAME="compiler (automake)"
+      CONFIG="--disable-libs"
+    - TEST_NAME="all (automake)"
+      CONFIG="--without-erlang --without-python --without-go --without-lua"
+      ALL_DEPS="yes"
+    - TEST_NAME="C & C++ & Haskell (automake)"
+      CONFIG="--without-csharp --without-java --without-erlang --without-nodejs --without-lua
--without-python --without-perl --without-php --without-php-extension --without-ruby --without-go
--without-d"
+      ALL_DEPS="yes"
+    - TEST_NAME="Small Set (automake)"
+      CONFIG="--without-erlang --without-haskell --without-python --without-go --without-lua
--without-d --without-ruby --without-nodejs --without-java"
+      ALL_DEPS="yes"
+    - TEST_NAME="dist (automake)"
+      CONFIG=""
+      ALL_DEPS="yes"
+      MAKE_TARGET="dist"
+
+matrix:
+  allow_failures:
+    # gcc fails on travis seemingly due to out of memory
+    - compiler: gcc
+
+  exclude:
+    # This one takes very long
+    - compiler: gcc
+      env: TEST_NAME="make cross (automake)" CONFIG="--without-python" ALL_DEPS="yes" MAKE_TARGET="cross"
+
+    # Does not use native compiler, no need to do it twice
+    - compiler: gcc
+      env: TEST_NAME="compiler (mingw32-gcc, CMake + CPack)" CMAKE_CONFIG="-DCMAKE_TOOLCHAIN_FILE=../build/cmake/mingw32-toolchain.cmake
-DBUILD_COMPILER=ON -DBUILD_LIBRARIES=OFF -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF"
+    - compiler: gcc
+      env: TEST_NAME="dist (automake)" CONFIG="" ALL_DEPS="yes" MAKE_TARGET="dist"
+
+  include:
+    - env:
+        - TEST_NAME="Debian Packages"
+      compiler: clang
+      before_install:
+       - sh build/travis/installCXXDependencies.sh;
+       - sh build/travis/installDependencies.sh 1> /dev/null;
+       - sudo apt-get install build-essential mono-gmcs mono-devel libmono-system-web2.0-cil
erlang-base ruby1.8-dev python-all python-all-dev python-all-dbg php5 php5-dev
+      script:
+       - dpkg-buildpackage -tc -us -uc
+       - ls -al ..
+
+
+    # QA jobs for code analytics and metrics
+
+    # static code analysis with cppcheck (we can add --enable=all later)
+    - env:    TEST_NAME="cppcheck (compiler) error"
+      script: cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 compiler/cpp/src
+      before_install: sudo apt-get install cppcheck
+    - env:    TEST_NAME="cppcheck (cpp) error"
+      script: cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 lib/cpp/src
lib/cpp/test test/cpp tutorial/cpp
+      before_install: sudo apt-get install cppcheck
+    - env:    TEST_NAME="cppcheck (c_glib) error"
+      script: cppcheck --force --quiet --inline-suppr --error-exitcode=1 -j2 lib/c_glib/src
lib/c_glib/test test/c_glib/src tutorial/c_glib
+      before_install: sudo apt-get install cppcheck
+    # add --error-exitcode=1 as soon as everything is fixed
+    - env:    TEST_NAME="cppcheck (compiler) all"
+      script: cppcheck --force --quiet --inline-suppr --enable=all -j2 compiler/cpp/src
+      before_install: sudo apt-get install cppcheck
+    - env:    TEST_NAME="cppcheck (cpp) all"
+      script: cppcheck --force --quiet --inline-suppr --enable=all -j2 lib/cpp/src lib/cpp/test
test/cpp tutorial/cpp
+      before_install: sudo apt-get install cppcheck
+    - env:    TEST_NAME="cppcheck (c_glib) all"
+      script: cppcheck --force --quiet --inline-suppr --enable=all -j2 lib/c_glib/src lib/c_glib/test
test/c_glib/src tutorial/c_glib
+      before_install: sudo apt-get install cppcheck
+
+    # TODO use findbugs for Java
+    # TODO use fxcop for C#
+
+    # TODO do style checks
+
+    # search for TODO within source tree
+    - env:    TEST_NAME="TODO"
+      before_install:
+      script: grep -r TODO *
+    # search for FIXME within source tree
+    - env:    TEST_NAME="FIXME"
+      before_install:
+      script: grep -r FIXME *
+    # search for HACK within source tree
+    - env:    TEST_NAME="HACK"
+      before_install:
+      script: grep -r HACK *
+    # some statistics about the code base
+    - env:    TEST_NAME="sloccount"
+      before_install:
+      script: sloccount .
+      before_install: sudo apt-get install sloccount
+    # some info about the build machine
+    - env:    TEST_NAME="info"
+      before_install:
+      script:
+       - dpkg -l
+       - uname -a
+
+# TODO make it perfect ;-r
+#


Mime
View raw message