[openrtm-commit:02500] r697 - in trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder: manager template/cpp
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 3月 7日 (火) 14:39:05 JST
Author: takahashi
Date: 2017-03-07 14:39:05 +0900 (Tue, 07 Mar 2017)
New Revision: 697
Added:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/template/cpp/travis.vsl
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CXXGenerateManager.java
Log:
[incompat,->RELEASE_1_2_0] Add CI templates of C++ in rtcbuilder. refs #3975
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CXXGenerateManager.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CXXGenerateManager.java 2017-03-04 15:25:47 UTC (rev 696)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/manager/CXXGenerateManager.java 2017-03-07 05:39:05 UTC (rev 697)
@@ -75,6 +75,8 @@
result.add(gr);
gr = generateRTCSource(contextMap);
result.add(gr);
+ gr = generateCITemplate(contextMap);
+ result.add(gr);
for (IdlFileParam idl : rtcParam.getProviderIdlPathes()) {
contextMap.put("idlFileParam", idl);
@@ -133,6 +135,13 @@
return generate(infile, outfile, contextMap);
}
+ public GeneratedResult generateCITemplate(Map<String, Object> contextMap) {
+ RtcParam rtcParam = (RtcParam) contextMap.get("rtcParam");
+ String outfile = ".travis.yaml." + rtcParam.getName();
+ String infile = "cpp/travis.vsl";
+ return generate(infile, outfile, contextMap);
+ }
+
public GeneratedResult generate(String infile, String outfile,
Map<String, Object> contextMap) {
try {
Added: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/template/cpp/travis.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/template/cpp/travis.vsl (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/src/jp/go/aist/rtm/rtcbuilder/template/cpp/travis.vsl 2017-03-07 05:39:05 UTC (rev 697)
@@ -0,0 +1,68 @@
+language: cpp
+sudo: required
+
+#notifications:
+# email:
+# recipients:
+# - someone at mail.com
+# on_success: change # default: change
+# on_failure: always # default: change
+
+matrix:
+ include:
+ # Ubuntu14.04 + Stable OpenRTM-aist
+ - os: linux
+ dist: trusty
+ compiler: gcc
+ env: repo="http://openrtm.org/pub/Linux/ubuntu/ trusty"
+ # Ubuntu12.04 + Stable OpenRTM-aist
+ - os: linux
+ compiler: gcc
+ env: repo="http://openrtm.org/pub/Linux/ubuntu/ precise"
+ # Ubuntu14.04 + Latest OpenRTM-aist
+ - os: linux
+ dist: trusty
+ compiler: gcc
+ env: repo="http://staging.openrtm.org/pub/Linux/ubuntu/ trusty"
+ # Ubuntu12.04 + Latest OpenRTM-aist
+ - os: linux
+ compiler: gcc
+ env: repo="http://staging.openrtm.org/pub/Linux/ubuntu/ precise"
+
+addons:
+ apt:
+ packages:
+ - software-properties-common
+ - g++
+ - uuid-dev
+ - doxygen
+ - omniorb-nameserver
+ - libomniorb4-dev
+ - omniidl
+
+before_script:
+ - echo "deb $repo main" | sudo tee -a /etc/apt/sources.list
+ - sudo apt-get -qq update
+ - sudo apt-get install -y --force-yes openrtm-aist
+ - sudo apt-get install -y --force-yes openrtm-aist-dev
+ - sudo apt-get install -y --force-yes openrtm-aist-example
+
+script:
+ - mkdir build
+ - cd build
+ - cmake ..
+ - make
+ - sudo make install
+
+before_deploy:
+ - sudo make package
+
+#deploy:
+# provider: releases
+# api_key:
+# secure: "xxxxxxxxxxxxxxxxxxxxx"
+# file: ${rtcParam.name}-${rtcParam.version}.tar.gz
+# skip_cleanup: true
+# on:
+# tags: true
+# all_branches: true
openrtm-commit メーリングリストの案内