Browse files

All CI changes squashed together to provide easy merge into all branc…

…hes.
  • Loading branch information...
1 parent 351e020 commit 8f70f5bce6722f7019f1812405d30d3fff9c1ae3 @nukulb nukulb committed Aug 25, 2011
Showing with 618 additions and 262 deletions.
  1. +48 −0 CheckFrameworkBuildOnMac.sh
  2. +40 −0 dist-ci.xml
  3. +2 −2 dist-mac.xml
  4. +2 −2 dist-windows.xml
  5. +525 −258 pom.xml
  6. +1 −0 runWithVCContext.bat
View
48 CheckFrameworkBuildOnMac.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+#
+# This script is used to check the progress of Framework build on Mac.
+# A file which names FRAME_CI_Build_Finished will be touched in a
+# shared folder, which is defined by $WORKSPACE. The script will exit
+# the while-loop once the flag file is detected.
+#
+
+# Exit code
+EXIT_FAILED=-1
+EXIT_SUCCESS=0
+
+#Check environment variables
+if [ -z "$FRAMEWORK_CI_SHARED_FOLDER" ]; then
+ echo "Environment variable: FRAMEWORK_CI_SHARED_FOLDER must be set"
+ exit $EXIT_FAILED
+fi
+
+if [ ! -d "$FRAMEWORK_CI_SHARED_FOLDER" ]; then
+ echo "$FRAMEWORK_CI_SHARED_FOLDER is not valid folder"
+ exit $EXIT_FAILED
+fi
+
+WORKSPACE=$FRAMEWORK_CI_SHARED_FOLDER
+BUILD_JOB_FINISHED_FLAG="Framework_CI_Build_Finished"
+
+TIMEOUT=$((30 * 60))
+counter=0
+
+# Wait until build job is finished
+echo "Waiting until build job is finished"
+echo "Waiting..."
+while [ 1 ]
+do
+ if [ -f $WORKSPACE/$BUILD_JOB_FINISHED_FLAG ]; then
+ exit $EXIT_SUCCESS
+ else
+ sleep 5
+ counter=$(($counter + 1))
+ TimeElapsed=$(($counter * 5))
+ if [ $TimeElapsed -gt $TIMEOUT ]; then
+ echo "time out to wait build job on Mac."
+ echo "Stop waiting and return failed..."
+ exit $EXIT_FAILED
+ fi
+ fi
+done
View
40 dist-ci.xml
@@ -0,0 +1,40 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+ <id>Starbuck</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <fileSets>
+ <fileSet>
+ <directory>build/bin</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>Starbuck.exe</include>
+ <include>*.dll</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>${env.QTDIR}/bin</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>QtGuid4.dll</include>
+ <include>QtCored4.dll</include>
+ <include>QtWebKitd4.dll</include>
+ <include>QtNetworkd4.dll</include>
+ <include>QtXmld4.dll</include>
+ <include>QtTestd4.dll</include>
+ <include>phonond4.dll</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>${env.FRAMEWORK_CI_SHARED_FOLDER}</directory>
+ <outputDirectory>mac</outputDirectory>
+ <includes>
+ <include>Starbuck.app/**/*</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+</assembly>
View
4 dist-mac.xml
@@ -10,10 +10,10 @@ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assemb
<fileSets>
<fileSet>
<directory>build/bin</directory>
- <outputDirectory>.</outputDirectory>
+ <outputDirectory>mac</outputDirectory>
<includes>
<include>Starbuck.app/**/*</include>
</includes>
</fileSet>
</fileSets>
-</assembly>
+</assembly>
View
4 dist-windows.xml
@@ -10,15 +10,15 @@ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assemb
<fileSets>
<fileSet>
<directory>build/bin</directory>
- <outputDirectory>.</outputDirectory>
+ <outputDirectory>win</outputDirectory>
<includes>
<include>Starbuck.exe</include>
<include>*.dll</include>
</includes>
</fileSet>
<fileSet>
<directory>${env.QTDIR}/bin</directory>
- <outputDirectory>.</outputDirectory>
+ <outputDirectory>win</outputDirectory>
<includes>
<include>QtGuid4.dll</include>
<include>QtCored4.dll</include>
View
783 pom.xml
@@ -1,260 +1,527 @@
<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.rim.starbuck</groupId>
- <artifactId>starbuck</artifactId>
- <version>1.0.0.1-SNAPSHOT</version>
- <name>${project.artifactId}-${project.version}</name>
- <packaging>pom</packaging>
-
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
-
- <scm>
- <connection>scm:git:git@git.rim.net:/devtools/starbuck/framework.git</connection>
- <developerConnection>scm:git:git@git.rim.net:/devtools/starbuck/framework.git</developerConnection>
- <url>/devtools/starbuck/framework.git</url>
- </scm>
-
- <build>
- <sourceDirectory>.</sourceDirectory>
- <directory>target</directory>
- <finalName>Starbuck</finalName>
-
- <plugins>
- <!-- Configure clean so that it also deletes the build/ folder -->
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.4.1</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>${project.build.sourceDirectory}</directory>
- <includes>
- <include>build/</include>
- </includes>
- <followSymlinks>false</followSymlinks>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <profiles>
- <profile>
- <id>windows</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- <property>
- <name>os</name>
- <value>windows</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <id>runCMake</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>generate-resources</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>cmake</executable>
- <arguments>
- <argument>..</argument>
- <!--<argument>-DCMAKE_BUILD_TYPE=Release</argument>-->
- <argument>-G</argument>
- <argument>NMake Makefiles</argument>
- </arguments>
- </configuration>
- </execution>
- <execution>
- <id>runMake</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>compile</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>nmake</executable>
- </configuration>
- </execution>
- <execution>
- <id>runMakeInstall</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>process-classes</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>nmake</executable>
- <arguments>
- <argument>install</argument>
- </arguments>
- </configuration>
- </execution>
- <!--
- <execution>
- <id>runUnitTests</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>test</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build/bin</workingDirectory>
- <executable>TestFramework.exe</executable>
- </configuration>
- </execution>
- -->
- </executions>
- </plugin>
-
- <!-- Package the header files and the lib/dll files for the starbuck project -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <id>assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>dist-windows.xml</descriptor>
- </descriptors>
- <appendAssemblyId>false</appendAssemblyId>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <id>mac</id>
- <activation>
- <property>
- <name>os</name>
- <value>mac</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1</version>
- <executions>
- <execution>
- <id>runCMake</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>generate-resources</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>cmake</executable>
- <arguments>
- <argument>..</argument>
- <!--<argument>-DCMAKE_BUILD_TYPE=Release</argument>-->
- </arguments>
- </configuration>
- </execution>
- <execution>
- <id>runMake</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>compile</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>make</executable>
- </configuration>
- </execution>
- <execution>
- <id>runMakeInstall</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>process-classes</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
- <executable>make</executable>
- <arguments>
- <argument>install</argument>
- </arguments>
- </configuration>
- </execution>
- <!--
- <execution>
- <id>runUnitTests</id>
- <goals>
- <goal>exec</goal>
- </goals>
- <phase>test</phase>
- <configuration>
- <workingDirectory>${project.build.sourceDirectory}/build/bin</workingDirectory>
- <executable>TestFramework</executable>
- </configuration>
- </execution>
- -->
- </executions>
- </plugin>
-
- <!-- Compress Starbuck.app into a zip file -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <id>assembly</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>dist-mac.xml</descriptor>
- </descriptors>
- <appendAssemblyId>false</appendAssemblyId>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
- <distributionManagement>
- <repository>
- <id>staging</id>
- <name>Rim Internal Releases</name>
- <url>http://maven.rim.net/nexus/service/local/staging/deploy/maven2</url>
- </repository>
-
- <snapshotRepository>
- <id>waterloo-snapshots</id>
- <name>Rim Internal Snapshots</name>
- <url>http://maven.rim.net/nexus/content/repositories/waterloo-snapshots</url>
- </snapshotRepository>
-
- <site>
- <id>rim-dev-site</id>
- <name>Rim Internal Site</name>
- <url>dav:http://maven.rim.net:8081/nexus/content/sites/rim-dev-site/${project.groupId}</url>
- </site>
- </distributionManagement>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.rim.starbuck</groupId>
+ <artifactId>starbuck</artifactId>
+ <version>1.0.0.1-SNAPSHOT</version>
+ <name>${project.artifactId}-${project.version}</name>
+ <packaging>pom</packaging>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <qtwebkit_tmp>${basedir}/qtwebkit_tmp</qtwebkit_tmp>
+ </properties>
+ <scm>
+ <connection>scm:git:git@git.rim.net:/devtools/starbuck/framework.git</connection>
+ <developerConnection>scm:git:git@git.rim.net:/devtools/starbuck/framework.git</developerConnection>
+ <url>/devtools/starbuck/framework.git</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>net.rim.starbuck</groupId>
+ <artifactId>QtWebkit</artifactId>
+ <version>1.0.0.1-SNAPSHOT</version>
+ <type>zip</type>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <sourceDirectory>.</sourceDirectory>
+ <directory>target</directory>
+ <finalName>Starbuck</finalName>
+ <plugins>
+ <!-- Configure clean so that it also deletes the build/ folder -->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.4.1</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${project.build.sourceDirectory}</directory>
+ <includes>
+ <include>build/</include>
+ </includes>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ <!-- Move the header files and the lib/dll to the target directory -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>${ASSEMBLY_DESCRIPTOR}</descriptor>
+ </descriptors>
+ <appendAssemblyId>false</appendAssemblyId>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>windows</id>
+ <activation>
+ <os>
+ <family>windows</family>
+ </os>
+ </activation>
+ <properties>
+ <QT_BIN>${env.QTDIR}/bin</QT_BIN>
+ <QT_LIB>${env.QTDIR}/lib</QT_LIB>
+ <QT_SRC>${env.QTDIR}/src/3rdparty/webkit</QT_SRC>
+ <QTWEBKIT_TMP>${project.build.sourceDirectory}/build/qtwebkit</QTWEBKIT_TMP>
+ <ASSEMBLY_DESCRIPTOR>${project.build.sourceDirectory}/dist-windows.xml</ASSEMBLY_DESCRIPTOR>
+ </properties>
+ <build>
+ <plugins>
+ <!-- Unpack QtWebkit from local repository -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack qtwebkit</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>net.rim.starbuck</groupId>
+ <artifactId>QtWebkit</artifactId>
+ <version>1.0.0.1-SNAPSHOT</version>
+ <type>zip</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${QTWEBKIT_TMP}</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- update QtLibrary -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>update ${QT_BIN}</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${QT_BIN}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${QTWEBKIT_TMP}/win/bin</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>*.dll</include>
+ <include>*.pdb</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>update ${QT_LIB}</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${QT_LIB}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${QTWEBKIT_TMP}/win/bin</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>*.lib</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>update ${QT_SRC}</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${QT_SRC}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${QTWEBKIT_TMP}/win/src</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>runCMake</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>generate-resources</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <environmentVariables>
+ <MSVS_HOME>${env.MSVS_HOME}</MSVS_HOME>
+ </environmentVariables>
+ <executable>${basedir}/runWithVCContext.bat</executable>
+ <arguments>
+ <argument>cmake</argument>
+ <argument>..</argument>
+ <!--<argument>-DCMAKE_BUILD_TYPE=Release</argument> -->
+ <argument>-G</argument>
+ <argument>NMake Makefiles</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>runMake</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <environmentVariables>
+ <MSVS_HOME>${env.MSVS_HOME}</MSVS_HOME>
+ </environmentVariables>
+ <executable>${basedir}/runWithVCContext.bat</executable>
+ <arguments>
+ <argument>nmake</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>runMakeInstall</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>process-classes</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <environmentVariables>
+ <MSVS_HOME>${env.MSVS_HOME}</MSVS_HOME>
+ </environmentVariables>
+ <executable>${basedir}/runWithVCContext.bat</executable>
+ <arguments>
+ <argument>nmake</argument>
+ <argument>install</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <!-- pack artifact from windows and mac -->
+ <profile>
+ <id>CI Build On Windows</id>
+ <activation>
+ <property>
+ <name>IsCIBuildOnWindows</name>
+ <value>yes</value>
+ </property>
+ </activation>
+ <properties>
+ <ASSEMBLY_DESCRIPTOR>${project.build.sourceDirectory}/dist-ci.xml</ASSEMBLY_DESCRIPTOR>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>start build job of framework on Mac</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>initialize</phase>
+ <configuration>
+ <executable>${env.GIT_HOME}/bin/curl.exe</executable>
+ <arguments>
+ <argument>--connect-timeout</argument>
+ <argument>30</argument>
+ <argument>${env.MAC_BUILD_SERVER_URL}/job/${env.JOB_NAME}/build</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>Check if build job is finished on Mac</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>process-classes</phase>
+ <configuration>
+ <executable>${env.GIT_HOME}/bin/sh.exe</executable>
+ <arguments>
+ <argument>-e</argument>
+ <argument>CheckFrameworkBuildOnMac.sh</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>mac</id>
+ <activation>
+ <os>
+ <family>mac</family>
+ </os>
+ </activation>
+ <properties>
+ <QT_LIB>${env.QTDIR}/lib</QT_LIB>
+ <QT_HEADER>${env.QTDIR}/include/QtWebKit</QT_HEADER>
+ <QTWEBKIT_TMP>${project.build.sourceDirectory}/build/qtwebkit</QTWEBKIT_TMP>
+ <ASSEMBLY_DESCRIPTOR>dist-mac.xml</ASSEMBLY_DESCRIPTOR>
+ </properties>
+ <build>
+ <plugins>
+ <!-- Unpack QtWebkit from local repository -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack qtwebkit</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>net.rim.starbuck</groupId>
+ <artifactId>QtWebkit</artifactId>
+ <version>1.0.0.1-SNAPSHOT</version>
+ <type>zip</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${QTWEBKIT_TMP}</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- update QtLibrary -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>update ${QT_LIB}</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${QT_LIB}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${QTWEBKIT_TMP}/mac/bin</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>update ${QT_HEADER}</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${QT_HEADER}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${QTWEBKIT_TMP}/mac/bin/QtWebkit.framework/Headers</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>*.h</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>runCMake</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>generate-resources</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <executable>cmake</executable>
+ <arguments>
+ <argument>..</argument>
+ <!--<argument>-DCMAKE_BUILD_TYPE=Release</argument> -->
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>runMake</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <executable>make</executable>
+ </configuration>
+ </execution>
+ <execution>
+ <id>runMakeInstall</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>process-classes</phase>
+ <configuration>
+ <workingDirectory>${project.build.sourceDirectory}/build</workingDirectory>
+ <executable>make</executable>
+ <arguments>
+ <argument>install</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>Copy Artifact from Mac to Shared Folder</id>
+ <activation>
+ <property>
+ <name>IsCIBuildOnMac</name>
+ <value>yes</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <!-- Configure clean so that it also deletes the build/ folder -->
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.4.1</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${env.FRAMEWORK_CI_SHARED_FOLDER}</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <followSymlinks>false</followSymlinks>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ <!-- Copy framework artifact to share folder -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.5</version>
+ <executions>
+ <execution>
+ <id>Copy framework artifact to shared folder</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${env.FRAMEWORK_CI_SHARED_FOLDER}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>build/bin</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>Starbuck.app/**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <id>Touch Framwork Build Finished Flag</id>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <workingDirectory>${env.FRAMEWORK_CI_SHARED_FOLDER}</workingDirectory>
+ <executable>touch</executable>
+ <arguments>
+ <argument>Framework_CI_Build_Finished</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <distributionManagement>
+ <repository>
+ <id>staging</id>
+ <name>Rim Internal Releases</name>
+ <url>http://maven.rim.net/nexus/service/local/staging/deploy/maven2</url>
+ </repository>
+ <snapshotRepository>
+ <id>waterloo-snapshots</id>
+ <name>Rim Internal Snapshots</name>
+ <url>http://maven.rim.net/nexus/content/repositories/waterloo-snapshots</url>
+ </snapshotRepository>
+ <site>
+ <id>rim-dev-site</id>
+ <name>Rim Internal Site</name>
+ <url>dav:http://maven.rim.net:8081/nexus/content/sites/rim-dev-site/${project.groupId}</url>
+ </site>
+ </distributionManagement>
</project>
View
1 runWithVCContext.bat
@@ -0,0 +1 @@
+"%MSVS_HOME%/VC/vcvarsall.bat" x86 && %*

0 comments on commit 8f70f5b

Please sign in to comment.