Commit Graph

453 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
3bc39c30c6 Also use DESTDIR when installing SDK on MinGW. 2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
4feb135281 Clean up SDK include dirs. Refactor FindUrho3D CMake module.
For Travis CI - add new steps to install the Urho3D SDK and to reference Urho3D library from the installed SDK.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
325a4f7365 Refactor to use the newly renamed Source/Urho3D directory. 2015-01-04 22:32:40 +08:00
Yao Wei Tjong 姚伟忠
0c9f73b9ae Enhance the :cmake and :make rake tasks to work on Windows too.
Try: rake cmake vs2013 URHO3D_LUAJIT=1 && rake make
2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
67e415acc8 Fine tune LuaJIT target arch detection logic. 2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
4db162eb62 Lua/LuaJIT host tool building while cross-compiling in one go.
For Travis CI - reenable CI build with Lua/LuaJIT build option turned on.
2015-01-04 22:32:39 +08:00
Yao Wei Tjong 姚伟忠
f9cb911cec Fix AngelScript binding which broke MinGW and OSX CI build.
Unify CMake module path setting command between Windows and non-Windows hosts for using library from SDK installation.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
d75c592bd2 Add new engine parameter to set the location of resource prefix path.
Remove temporary measure instead use the new URHO3D_PREFIX_PATH environment variable to set the resource prefix path for testing the executables.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
503cb6edc9 Rectify post_cmake helper method for Eclipse IDE. 2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
367d92abf1 Fix temporary measure for assset dir symlink creation for OSX CI test.
Also fix cmake shell scripts for iOS build.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
98d410091e Fix temporary measure for creating asset dir symlink in Ubuntu host.
Also:
- fix Android-CI build which does not need the symlink creation in the first place.
- fix an existing Xcode build configuration bug which was left undetected until now.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
d8a3b8b4f4 Make repo root is also CMake source tree for the Urho3D project.
Build tree location is now fully user defined. The build tree location could also be the same as source tree, although it is not recommended.
2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
4f60123516 Move CMake modules and toolchains to the new source tree. 2015-01-04 22:32:38 +08:00
Yao Wei Tjong 姚伟忠
e9167c3645 Fix 'rake scaffolding' task for Windows host. [ci skip] 2014-12-08 23:20:26 +08:00
Yao Wei Tjong 姚伟忠
563388b326 For Travis CI - uncomment commented out code during debugging.
[ci skip]
2014-12-04 22:55:23 +08:00
Yao Wei Tjong 姚伟忠
7b17a049a0 For Travis CI - revise ci_rebase task to auto prepare new CI branches.
Related to commit b902e863e6.
2014-12-04 22:35:57 +08:00
Yao Wei Tjong 姚伟忠
b902e863e6 For Travis CI - add support for multi-platforms CI for topic branch. 2014-12-03 17:05:17 +08:00
Yao Wei Tjong 姚伟忠
aaec0d9200 For Travis CI - use Release build configuration when build on bad VM.
Now this rule is applicable for all target platforms (Linux, Windows, Android, and Raspberry-Pi) which have their CI builds run on Linux/Ubuntu host VM. Mac OSX and iOS CI builds are not affected by this rule since they run on OSX host VM which is not susceptible to "bad VM" issue. The idea is to reduce memory consumption during the linking phase and thus avoiding the process being killed due to insufficient memory in the VM.
2014-11-27 20:19:58 +08:00
Yao Wei Tjong 姚伟忠
e0d13d706e For Travis CI - simplify the ci_rebase rake task.
On normal commit, use the origin/master. On git tagging commit, use the 'tag' branch.
Also when on git taggig commit, prevent API doc update on the master branch because it is already too late to do so as the commit won't be in the tag anyway.
2014-11-26 16:57:23 +08:00
Yao Wei Tjong 姚伟忠
f6e8f3b0fa Merge branch 'cleaning-up-build-scripts-for-android' into master. 2014-11-26 14:22:41 +08:00
Yao Wei Tjong 姚伟忠
1e195bb186 For Travis CI - use HEAD instead of $TRAVIS_BRANCH for ci_rebase task.
This is because the detached head may actually move due to API documentation update, so $TRAVIS_BRANCH environment variable may actually just point to HEAD~ in this scenario, which was not good as it would cause CI mirror branches became being pushed twice unnecessarily, one for HEAD~ and one for HEAD.
Using HEAD should work equally well for both normal commit and release tagging commit.
2014-11-24 23:43:57 +08:00
Yao Wei Tjong 姚伟忠
e7b0808b12 Misc. fixes in the build script to improve the release mechanism.
The following changes address the shortcomings of our current release mechanism detected from our last release.
- Define and set RELEASE_TAG environment variable only when a git tag conform to a release tagging matching regex "\d+\.\d+".
- Change the logic to allow the automated rake tasks to be triggered on a 'tag' branch properly.
- Fix the 'git rebase' command to use the branch pointed by TRAVIS_BRANCH environment variable as baseline, instead of assuming it to be always 'origin/master' as before.
- Change Urho3D library versioning CMake module to omit the version patch number when there is none, i.e. 1.32 instead of 1.32.0.
2014-11-23 20:01:32 +08:00
Yao Wei Tjong 姚伟忠
dd01b749eb Enhance Rakefile to autoload other *.rake scripts in ".rake" directory.
Also create symlink to Rakefile when scaffolding.
[ci skip]
2014-11-22 01:10:24 +08:00
Yao Wei Tjong 姚伟忠
60eeb45222 For Travis CI - skip APK test run when packaging.
General build script cleanup:
- Constrain build option values in cmake-gui.
- Constrain build configuration for both multi-configuration and single-configuration generators.
- Mark cached variables as advanced or internal as appropriate.
2014-11-22 00:39:48 +08:00
Yao Wei Tjong 姚伟忠
0fb99af9e4 Misc. fixes and enhancement for Android platform.
- Add initial support for ndk-gdb. Enable via new 'URHO3D_NDK_GDB' build option.
- Enhance rake android task: more effective loop to wait for Android device, ability to pick library to run from SampleLauncher from the adb shell.
- Fix "buildvm" tool name for Android to derive from the correct NDK ABI CMake's variable.
- Fix Android toolchain to copy shared STL library to the correct Android library output directory.
2014-11-19 21:50:37 +08:00
Yao Wei Tjong 姚伟忠
33358e9caa For Travis CI - Fallback to use Lua library for ABI arm64-v8a.
SDK r10c does not ship with the corresponding system image for this ABI yet, so also skip the APK packaging step for now.
2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
1b95f204dc Enhance Android related tasks to work with multiple attached devices. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
c711d450ed Name Android buildvm tool for LuaJIT library differently based on ABI. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
0e9f6e9251 For Travis CI - reduce the AVD waiting time to 1 minutes instead.
There is no point to wait for AVD to start. By the time the CI finishes the build, if the emulator is able to start the AVD then it should have been already done so.
On non-CI environment, the build time could still be much faster than the emulator starting the AVD, thus the function to wait for AVD is still useful in non-CI environment.
2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
f8a2b5e14e For Travis CI - attempt to fix failure to start emulator with API 21. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
b0b8b58f6d For Travis CI - double the time to wait for AVD to start.
AVD with API level 21 seems to take longer to start. Also when the AVD failed to start in time, CI now skips the APK installation/launching test and considers the whole build as passed.
2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
eda52984ac Add initial support for 64-bit Android ABIs. 2014-11-19 21:48:25 +08:00
Yao Wei Tjong 姚伟忠
1f6215cf58 Initial support of rake scaffolding task on Windows platform.
The task requires privilege to create symlink via mklink command.
2014-11-09 00:38:35 +08:00
Yao Wei Tjong 姚伟忠
0652ccf394 Fix FindUrho3D CMake module to perform rooted search on MinGW CC build. 2014-11-07 17:01:07 +08:00
Yao Wei Tjong 姚伟忠
e29efb21a3 For Travis CI - tweak the iOS universal binary build rule threshold.
Reduce the checkpoint from 20 minutes to 15 minutes. Also add logic to output the elasped time to aid future tweaking.
2014-10-31 12:26:48 +08:00
Yao Wei Tjong 姚伟忠
f28d29cf2d For Travis CI - clean up Rakefile, only download for DirectX CI build. 2014-10-30 18:07:14 +08:00
Yao Wei Tjong 姚伟忠
cddef2ca52 For Travis CI - attempt to download missing D3D header from Launchpad. 2014-10-30 17:55:13 +08:00
Yao Wei Tjong 姚伟忠
c3646224fc For Travis CI - temporarily allowed the new CI builds to fail.
The MinGW packages from Ubuntu 12.04 LTS are too old to pull this off.
2014-10-30 13:37:39 +08:00
Yao Wei Tjong 姚伟忠
899f8334f3 For Travis CI - add CI builds for MinGW + URHO3D_OPENGL=0 combination.
These new CI builds will perform the build test on the DirectX code path which is currently not covered in any of our existing CI.
The CI builds should also improve the detection of any breakage caused by build script changes for MinGW compiler.
2014-10-30 12:33:11 +08:00
Yao Wei Tjong 姚伟忠
141c36aa77 For Travis CI - add a rule to decide whether to skip universal build.
The threshold is currently set to 20 minutes (can be adjusted). If by the given threshold time the iOS build has not reached the checkpoint then the universal binary build is skipped automatically.
2014-10-15 16:49:32 +08:00
Yao Wei Tjong 姚伟忠
e7fe50f2dc For Travis CI - disable Mach-O universal binary build for 64-bit iOS.
When Travis CI is overloaded, the CI builds tend to get longer. Our iOS 32-bit and 64-bit CI build are usually finished very close to the 50 minutes time limit but may overshoot to pass the limit when Travis CI is overloaded. Using the xcpretty only helps in reducing the log size but it cannot help in this case. This commit disables again the universal binary build for the 64-bit iOS build when packaging the build artifact. The Mach-O universal binary build for 32-bit iOS build may be disabled too in the near future when we get more samples or the overloaded situation gets worse.
2014-10-14 13:47:23 +08:00
Yao Wei Tjong 姚伟忠
bee2240fb5 For Travis CI - replace xctool with xcpretty to filter build output.
Close #477. [ci package]
2014-10-06 22:55:35 +08:00
Yao Wei Tjong 姚伟忠
e06762db76 On non-MSVC compiler, default to 64-bit when host compiler is.
The default can be overriden using URHO3D_64BIT build option as before.
2014-09-29 18:28:08 +08:00
Yao Wei Tjong 姚伟忠
995275b008 For Travis CI - only add the test case when the subsystem is enabled. 2014-09-27 17:12:31 +08:00
Yao Wei Tjong 姚伟忠
d642deac1f Also fix the documentation link in the 'scaffolding' rake task. 2014-09-22 22:33:41 +08:00
Yao Wei Tjong 姚伟忠
76c4d8f21a Ensure Android (virtual) device could be unlocked before running test.
On non-CI environment, the device may already be created and just being reattached to the daemon. The unlock key event should only be sent after the device is ready (the launcher is running nd no more bootanimation process).
2014-09-18 15:20:37 +08:00
Yao Wei Tjong 姚伟忠
a490436324 For Travis CI - when housekeeping SF.net, sort by name instead of time.
Occassionally there could be multiple successive commits causing multiple CI jobs queue up in the Travis CI. Due to latency of each jobs, the jobs may finish not in the same order as the commits. If the CI build happens to be instructed to perform package upload then the uploaded packages may come in not in the right order as the result.
2014-09-15 14:26:16 +08:00
Yao Wei Tjong 姚伟忠
e48f134290 Code cleanup and fix iOS build.
[ci package]
2014-09-15 00:53:19 +08:00
Yao Wei Tjong 姚伟忠
08f54f96e6 Enhance CMake build script to support iOS deployment target.
For Travis CI - set the iOS deployment target to 7.0 explicitly but have to bump the OSX deployment target to 10.8 because Travis-CI only have 10.8 and 10.9 SDKs installed.
[ci package]
2014-09-14 23:48:42 +08:00
Yao Wei Tjong 姚伟忠
bebe9b6197 For Travis CI - set the OSX deployment target to 10.7 explicitly.
If the option is not set, Urho3D CMake build script by default configures it to match the currently running OS X version. On Travis-CI that is 10.9 which is too high for binary packaging. Closes #447.
2014-09-14 22:40:54 +08:00
Yao Wei Tjong 姚伟忠
a5e34ea512 Adjust RPATH to also search lib directory relative to the executables.
Closes #448.
2014-09-13 23:41:09 +08:00
Yao Wei Tjong 姚伟忠
9f0b6412b9 For Travis CI - rename source package to use same version delimiter.
[ci skip]
2014-09-13 10:45:08 +08:00
Yao Wei Tjong 姚伟忠
036fe0959c For Travis CI - code cleanup but add more memory diagnostics.
[ci package]

- Simplify the check on environment variable containing the commit-ish used in the 'git describe' command.
- Shuffle the rebase order in 'ci_rebase' rake task, move the OSX-CI rebase to the last as OSX Travis-CI build environment is extremely slow lately (has longer job queue).
- Improve 'android' rake task to only create named AVD for CI test when necessary and to turn off graphics acceleration explicitly when starting the emulator in CI environment.
- Add more memory diagnostics to help in investigation of process being killed by Travis CI upstream issue reported in #430.
2014-09-12 13:52:00 +08:00
Yao Wei Tjong 姚伟忠
2e532412fe For Travis CI - minor refactor to use the same commit-ish as Travis-CI.
Simplify build artifact housekeeping logic as now all the mirror CI branches will produce the same package description as the master branch.
[ci package]
2014-09-11 23:17:53 +08:00
Yao Wei Tjong 姚伟忠
c99c3dec2e Fix the heading size for the generated pages using markdown.
[ci skip]
2014-09-11 21:37:17 +08:00
Yao Wei Tjong 姚伟忠
19577d2fd0 For Travis CI - change to use git fetch 'unshallow' instead of 'depth'.
The hard-coded depth=2000 may not be a good estimate of how deep we should go in order to get the last annotated tag. Also move the operation to 'ci' rake task so it can be shared for all the Travis-CI build environments.
2014-09-09 22:44:39 +08:00
Yao Wei Tjong 姚伟忠
0e9f54da9f For Travis CI - move Raspberry-Pi build to its own CI mirror branch. 2014-09-08 14:26:38 +08:00
Yao Wei Tjong 姚伟忠
e613cbde91 For Travis CI - refine abort message for 'android' rake task.
Test [ci package] for Android-CI build.
2014-09-07 18:59:36 +08:00
Yao Wei Tjong 姚伟忠
668d2bb48e For Travis CI - adjust success indicator string for CI.
Cannot enable hardware acceleration in the Travis CI VM, so just check the sign of Urho3D from being started instead of checking the engine is fully initialized.
2014-09-06 15:15:32 +08:00
Yao Wei Tjong 姚伟忠
e38b165906 For Travis CI - move Android CI build to its own CI mirror branch. 2014-09-06 14:06:43 +08:00
Yao Wei Tjong 姚伟忠
aa7068d332 For Travis CI - test run Android APK in emulator as part of CI build.
This should prevent the similar incident like SONAME breaking Android APK went unnotice for days.
Also:
- Revert back the workaround attempt for the RPI build as it did not work. The build error problem has been reported to Travis-CI upstream issue log.
- Add new rake task to automate Android APK testing (tested on Linux platform only).
2014-09-06 01:41:47 +08:00
Yao Wei Tjong 姚伟忠
f30cdd7abb For Travis CI - fix error handling for xcode_build.
Also fix to properly exclude IOS 64-bit test run on OSX CI build environment, but thanks to this mistake we found another bigger mistake in the xcode_build error handling.
2014-09-03 21:09:07 +08:00
Yao Wei Tjong 姚伟忠
f58d8563e8 For Travis CI - misc. minor refactoring and bug fixes.
- Add Android API level environment variable.
- Prevent unnecessary enabling of CMake testing configuration when the build test cannot be performed for specific target platform.
- Fix missing 'abort' command on a number of error handling branches.
2014-09-03 15:17:40 +08:00
Yao Wei Tjong 姚伟忠
6df619c383 For Travis CI - Refactor to terminate early on any errors.
The errors include: git clone error, apt-get update/install error, download error, etc.
The purpose of this refactor is to clearly distinguish between Travis CI build error (caused by error on Travis side) and Travis CI build failure (caused by build or test failure on Urho3D side). Previous setup sometimes allowed build environment in error state to continue to proceed with software building phase due to inefficient branching logic.
2014-09-02 00:15:10 +08:00
Yao Wei Tjong 姚伟忠
89fc5f3b07 For Travis CI - Misc. minor changes to improve CI build.
- Remove other temporary workaround for MinGW CI build to see if changing to 'Release' build configuration is enough to fix the insufficient memory problem.
- Attempt to fix intermitten network problem when installing software packages for Rasperry-Pi CI build by delaying the massive sysroot git clone to the last. Read this blog (http://blog.travis-ci.com/2013-05-20-network-timeouts-build-retries/) on general network issue plaguing travis-ci.org.
2014-09-01 15:00:18 +08:00
Yao Wei Tjong 姚伟忠
2e8f480990 For Travis CI - MinGW STATIC CI build workaround again. 2014-08-28 17:22:29 +08:00
Yao Wei Tjong 姚伟忠
ac20004e87 For Travis CI - Scale back to use just 1 process when retrying. 2014-08-28 13:39:09 +08:00
Yao Wei Tjong 姚伟忠
bb1a410831 For Travis CI - For MinGW STATIC build, retry sample build for 3 times.
Each retry should build starts from where it fails, so hopefully it would not hit the memory limit.
Closes #431.
2014-08-27 23:52:14 +08:00
Yao Wei Tjong 姚伟忠
3f24b74025 Fix the RELEASE_TAG conditional check. 2014-08-21 02:11:10 +08:00
Yao Wei Tjong 姚伟忠
4f571f7df5 For Travis CI - Demoting Doxygen's h1 to h2 and h2 to h3.
This process is only carried out when building Doxygen documentation pages in the CI server because those pages are intended to be embedded inside a Jekyll template.
Closes https://github.com/urho3d/urho3d.github.io/issues/3.
Also reverting back the scripting done for one time documentation build.
[ci skip]
2014-08-19 20:19:59 +08:00
Yao Wei Tjong 姚伟忠
0e0979d42d One time documentation build for HEAD and past two releases. Take 2. 2014-08-19 20:04:29 +08:00
Yao Wei Tjong 姚伟忠
2ee30602d3 One time documentation build for HEAD and past two releases. 2014-08-19 19:58:49 +08:00
Yao Wei Tjong 姚伟忠
bc35f91a6f For Travis CI - preparation for versioned site documentation update. 2014-08-17 14:23:43 +08:00
Yao Wei Tjong 姚伟忠
528bfe316d For Travis CI - use single process when building samples for MinGW. 2014-08-12 12:05:21 +08:00
Yao Wei Tjong 姚伟忠
4b45d70769 For Travis CI - misc. minor fixes.
- Fix commit message when performing API documentation update.
- Use single process when packaging to prevent make process being killed due to out of memory.
- Use one less process when building samples for MinGW/64-bit/STATIC target due to out of memory.
- Use commit-ish to describe the version number when renaming source package.
2014-08-12 11:41:56 +08:00
Yao Wei Tjong 姚伟忠
2d04e9faac For Travis CI - fix the commit message for API documentation update. 2014-08-11 00:45:23 +08:00
Yao Wei Tjong 姚伟忠
0a9ca375ab Replace old link references.
[ci skip]
2014-08-10 15:38:32 +08:00
Yao Wei Tjong 姚伟忠
eb8157c3eb Differentiate between SOVERSION and git revision number.
Closes #419. Test [ci package]
2014-08-09 01:12:36 +08:00
Yao Wei Tjong 姚伟忠
a1bee0af01 For Travis CI - wget quietly. 2014-08-09 01:10:30 +08:00
Yao Wei Tjong 姚伟忠
7c014df6dd For Travis CI - upload snapshot source packages to FRS.
Test [ci package].
2014-08-08 19:42:01 +08:00
Yao Wei Tjong 姚伟忠
6aa37fc87f Set default tab width to 2 for vi editor only for these two files. 2014-08-08 14:24:29 +08:00
Yao Wei Tjong 姚伟忠
eb24f558ea For Travis CI - Another attempt before falling back to NUMJOBS=2. 2014-08-08 13:24:09 +08:00
Yao Wei Tjong 姚伟忠
514ed2b9a3 For Travis CI - Another attempt by building 22_LuaIntegration first. 2014-08-08 13:11:20 +08:00
Yao Wei Tjong 姚伟忠
5989a5c4d9 For Travis CI - build AssetImporter separately from the rest.
Temporary workaround due to Travis-CI insufficient memory when building AssetImporter concurrently with other samples in 64-bit/MinGW/STATIC build configuration.
2014-08-08 12:46:10 +08:00
Yao Wei Tjong 姚伟忠
91c489bdfb Setup RPATH for Mac OS X. Adjust soversion to keep Apple linker happy.
Set CMake policy CMP0042 to NEW for early CMake 3.0.0 adopters to prevent warning message when generating Urho3D project file.
2014-07-19 21:23:11 +08:00
Yao Wei Tjong 姚伟忠
08f08e460b Improve the reliablity to find SDL_android_main.c when using SDK.
Replace usage of URHO3D_INSTALL_PREFIX environment variable with the more standard CMake's own CMAKE_PREFIX_PATH environment variable to define prefix path of non-standard SDK installation location.
2014-07-17 15:15:15 +08:00
Yao Wei Tjong 姚伟忠
cf1a0156e9 Briefly comment the CMake policy settings and update the documentation. 2014-07-17 12:31:02 +08:00
Yao Wei Tjong 姚伟忠
3c77988d37 Set CMake policy CMP0026 to OLD for early CMake 3.0.0 adopters.
This change prevents warning message spams while generating Urho3D project file.
2014-07-16 13:15:11 +08:00
Yao Wei Tjong 姚伟忠
1049b6c3d2 For Travis CI - still do the packaging for iOS build no matter what. 2014-07-04 00:40:47 +08:00
Yao Wei Tjong 姚伟忠
31360310ca For Travis CI - reduce parallel build jobs to 2 for MinGW static lib.
This is necessary because the last two CI builds have failed for MinGW static library build due to insufficient memory during linking phase.

Also:
- Increase the number of build artifacts being kept in the SourceForge.net.
- Fixes #380 by skipping Mach-O binary (universal library) for iOS 64-bit build. The Urho3D lib in the build artifact will only contain 64-bit arch, 32-bit arch and iphonesimulator are excluded for now to reduce the build time.
2014-07-04 00:01:28 +08:00
Yao Wei Tjong 姚伟忠
f15c75d2ef For Travis CI - attempt to perform CI build using multiple build jobs. 2014-06-11 13:13:57 +08:00
Yao Wei Tjong 姚伟忠
888e13305c Skip documentation build for iOS 64-bit when packaging in CI build.
Closes #380.
Force a binary packaging now [ci package].
2014-06-10 16:53:09 +08:00
Yao Wei Tjong 姚伟忠
de7d900be4 Parameterized project and target name for rake scaffolding task.
[ci skip]
2014-04-29 23:53:47 +08:00
Yao Wei Tjong 姚伟忠
46285baf97 Refactor build scripts to group Urho3D specific build option.
Initial support of project configuration and generation via cmake-gui.
2014-04-05 00:20:56 +08:00
Yao Wei Tjong 姚伟忠
47de869259 Rectify a copy paste error on abort message for RPI. [ci skip] 2014-03-22 19:28:45 +08:00
Yao Wei Tjong 姚伟忠
dd1cbc9499 For Travis CI - attempt to perform CI build for Raspberry Pi platform. 2014-03-21 20:35:59 +08:00
Yao Wei Tjong 姚伟忠
212630c588 For Travis CI - script clean up. [ci skip] 2014-03-20 15:30:38 +08:00
Yao Wei Tjong 姚伟忠
41549655ce Build both armeabi and armeabi-v7a ABIs when packaging for Android.
- Fix android toolchain to correctly set the library output path when ANDROID_ABI build option changes.
- For Travis CI - download and setup Android SDK on the fly when performing Android packaging.
- Final apk is included in the binary package.
2014-03-19 23:57:48 +08:00
Yao Wei Tjong 姚伟忠
3eceb385fe For Travis CI - fix non uniq revision deletion list for housekeeping.
[ci package]
2014-03-12 12:26:34 +08:00
Yao Wei Tjong 姚伟忠
19c9452944 For Travis CI - setup digital key earlier for housekeeping to work.
[ci package]
2014-03-12 10:53:58 +08:00
Yao Wei Tjong 姚伟忠
a6036755b9 For Travis CI - automate housekeeping of old snapshots.
[ci package]
2014-03-12 10:12:51 +08:00
Yao Wei Tjong 姚伟忠
dce461469f For Travis CI - detect release tag and do the necessary automatically.
When a release tag is detected in a commit, instruct CI build to perform a released package build that uploaded into release directory instead of Snapshots directory.
2014-03-09 16:42:30 +08:00
Yao Wei Tjong 姚伟忠
3b3b4544d0 For Travis CI - fix packaging for OSX platform. [ci package] 2014-03-09 14:38:38 +08:00
Yao Wei Tjong 姚伟忠
bdc0348b88 For Travis CI - do not set ENABLE_TESTING build option when packaging. 2014-03-05 12:33:30 +08:00
Yao Wei Tjong 姚伟忠
698e5fb385 For Travis CI - use rsync for sync-ing readme and license files.
[ci skip]
2014-03-05 12:33:30 +08:00
Yao Wei Tjong 姚伟忠
03b9908c1d Demonstrate usage of Lua closure to access 'upvalues' for scene update. 2014-03-03 10:28:13 +08:00
Yao Wei Tjong 姚伟忠
1a7d032425 Misc. minor fixes. 2014-03-02 16:16:50 +08:00
Yao Wei Tjong 姚伟忠
77a87b824c For Travis CI - escape bracket character to fix commit message parsing.
[ci skip]
2014-02-25 15:50:46 +08:00
Yao Wei Tjong 姚伟忠
c306e7d57a For Travis CI - another attempt to fix iOS 64-bit packaging.
[ci package]

- When performing CI build for iOS platform, suppress all warnings. Non-CI build will still receive them.
- Automatically instruct Travis CI to do packaging when AngelScript or LuaScript API have changed.

Additionally, enhance iOS-specific Urho3D_universal custom target to perform initial check to see a rebuild is really necessary.
2014-02-24 17:21:56 +08:00
Yao Wei Tjong 姚伟忠
da6c5e54ad For Travis CI - fix Linux RPM packaging and iOS 64-bit packaging.
[ci package]

Travis-CI Ubuntu build environment requires additional software package to generate RPM package.
Travis-CI does not like iOS 64-bit build that generates >4MB log and kills the build process. Workaround by trying to rebuild universal binary quietly, hopefully the rebuild would not exceeds 10 minutes or otherwise Travis-CI would kill the process again for the other reason: no log activity. Finger cross.
2014-02-24 02:10:49 +08:00
Yao Wei Tjong 姚伟忠
82b707e66b For Travis CI - more tweaks on the packaging setup. [ci package]
- Prevent packaging from being accidentally invoked by a pull request or a commit on non-master branch.
- Generate documentation before packaging if it is not yet generated in previous step.
- When packaging for iOS platform, rebuild Urho3D library as Mach-O universal binary.
- When packaging for Linux platform, also invokes RPM and Debian CPack generators.
2014-02-24 00:16:53 +08:00
Yao Wei Tjong 姚伟忠
544c738b5a For Travis CI - change the private key and secure key. [ci package] 2014-02-23 13:42:06 +08:00
Yao Wei Tjong 姚伟忠
dd6f06c8da For Travis CI - supplying keys for automatic package upload.
[ci package]
2014-02-23 13:18:52 +08:00
Yao Wei Tjong 姚伟忠
08271fda85 For Travis CI - misc. tweaks. [ci package]
- Perform shallow clone when building site documentation to speed up cloning process.
- Perform unshallow pull when packaging so that 'git describe' gives correct commit count since last tag.
- Only perform packaging when all the previous steps are successful. Reduce chances of binary package with not up-to-date documentation.
- When packaging for iOS platform, generate the documentation quietly (no stdout but still stream error to stderr).
2014-02-22 14:43:22 +08:00
Yao Wei Tjong 姚伟忠
c7fe5f6267 For Travis CI - fix packaging for iOS platform. [ci package] 2014-02-21 23:55:16 +08:00
Yao Wei Tjong 姚伟忠
5099928b58 Fix Windows build using Urho3D as external lib in Release config.
Detected by Travis CI build. With this change, FindUrho3D module should be able to find Urho3D libs in the following scenarios:
- only debug version is available
- only release version is available
- both debug version and release version are available

Request CI build to use a Release build configuration [ci package].
2014-02-21 21:54:32 +08:00
Yao Wei Tjong 姚伟忠
22f38857cc For Travis CI - Use Release configuration when packaging. [ci package] 2014-02-21 19:36:17 +08:00
Yao Wei Tjong 姚伟忠
89836f11fc For Travis CI - attempt to make packages on demand. [ci package] 2014-02-21 17:47:04 +08:00
Yao Wei Tjong 姚伟忠
30807ff796 For Travis CI - fix a typo in error handling execution path. [ci skip] 2014-02-18 20:58:38 +08:00
Yao Wei Tjong 姚伟忠
48eb60fd8e Rename 'magic' module to 'common' module to reflect its purpose better.
The purpose of Urho3D-CMake-common module is to store all the commonly used CMake commands and macros in one place so that they can be reused by other external projects using Urho3D as external library by simply including this module in their own CMakeList.txt.
2014-02-18 12:55:13 +08:00
Yao Wei Tjong 姚伟忠
ea1372e05b Add copyright protection for Travis CI setup. 2014-02-18 12:35:32 +08:00
Yao Wei Tjong 姚伟忠
cb4257a599 For Travis CI - main repo only has amalgamated build option for LuaJIT. 2014-02-17 23:04:00 +08:00
Yao Wei Tjong 姚伟忠
091bad25e4 For Travis CI - clean up the comment lines. alle grün :)
[ci skip]
2014-02-17 22:36:47 +08:00
Yao Wei Tjong 姚伟忠
83a5aae303 Fix Clang-Makefile Debug configuration build detected by OSX-CI.
For Travis CI - consider nothing to commit as OK to proceed to next step.
2014-02-17 21:43:39 +08:00
Yao Wei Tjong 姚伟忠
b0623e8965 For Travis CI - set MinGW cross-compiling build as mandatory to pass.
Preparation for OSX-CI build.
2014-02-17 19:44:37 +08:00
Yao Wei Tjong 姚伟忠
798eb597b6 Misc. bug fixes detected by CI build for Windows platform.
- Fix finding Urho3D library when only debug version is available.
- Keep the library dependencies in the list as they are, even if that means a same library being listed twice (to fix dynamic library build for Windows platform).
- MinGW cross-compiling toolchain already has PIC flag set by default, so skip setting it one more time (to suppress compiler warnings spam).
2014-02-17 01:57:04 +08:00
Yao Wei Tjong 姚伟忠
5f67c434bf For Travis CI - try to fix installation of MinGW-W64 packages.
Somehow apt-get in Travis-CI build environment does not auto install all the dependencies.
2014-02-15 19:37:07 +08:00
Yao Wei Tjong 姚伟忠
f3622e546a For Travis CI - fix quotation marks. 2014-02-15 19:02:03 +08:00
Yao Wei Tjong 姚伟忠
5a469eea39 Fix MinGW cross compiling build on Ubuntu host system.
Attempt to add CI build for Windows platform using MinGW cross compiling toolchain.
2014-02-15 18:55:09 +08:00
Yao Wei Tjong 姚伟忠
c8a8d15681 For Travis CI - attempt to fix 32-bit CI build. Skip Android SDK. 2014-02-13 00:05:32 +08:00
Yao Wei Tjong 姚伟忠
f95328ac0f For Travis CI - speedup CI build for pull requests. 2014-02-12 16:21:38 +08:00
Yao Wei Tjong 姚伟忠
357019e0f3 For Travis CI - subshell could not export var, so define it elsewhere. 2014-02-11 22:55:19 +08:00
Yao Wei Tjong 姚伟忠
d85d24ae82 For Travis CI - attempt to setup 32-bit and Android CI build. 2014-02-11 21:39:56 +08:00
Yao Wei Tjong 姚伟忠
48eb0497df Rename var name from <package>_INCLUDE_DIR to <package>_INCLUDE_DIRS.
See http://urho3d.prophpbb.com/topic9.html.
2014-01-21 15:57:07 +08:00
Yao Wei Tjong 姚伟忠
9cf8e75597 Enhance scaffolding task to show real path after new project creation. 2014-01-13 20:11:32 +08:00
Yao Wei Tjong 姚伟忠
a98b07eb44 For Travis CI - cleanup Rakefile script.
[ci skip]
2014-01-09 16:09:07 +08:00
Yao Wei Tjong 姚伟忠
9f0261c643 Fix Android build using Urho3D as external library.
Also:

- Enhance generated Eclipse project setting file to additionally use gcc/g++ error parser.

- Enhance cmake_gcc.sh script to fallback to find alternative CMake toolchains directory.

- Enhance Rakefile:
    - New scaffolding task to create new project using Urho3D as external library. At the moment only works in Unix-like platforms.
    - Build in Debug mode instead of Release mode as it should capture more potential issues.
2014-01-08 22:08:57 +08:00
Yao Wei Tjong 姚伟忠
8a53a7297a For Travis CI - explicitly request for bash shell to keep Ubuntu happy. 2014-01-07 23:02:33 +08:00
Yao Wei Tjong 姚伟忠
59b2b02888 Fix build using Urho3D as external library. Closes 112.
Add test cases in Travis CI to test build using Urho3D as external library in external (non Urho3D) project.
2014-01-07 22:03:32 +08:00
Yao Wei Tjong 姚伟忠
db9efdf375 For Travis CI - proceed with API update even when site is up-to-date.
The API documentation update is expected to fail when remote HEAD moves (i.e. there are new pushes while Travis CI build is in progress). Enhance the script one more time so that it always attempts to update API documentation on every build.
2014-01-05 13:03:56 +08:00
Yao Wei Tjong 姚伟忠
662fe84d3c For Travis CI - Replace GH_TOKEN as it was exposed in the build log.
Due to git push failure from detached HEAD, the error log in Travis CI build contains GH_TOKEN for worker account. A new GH_TOKEN is now generated.
Enhance the script so that it does not spit out any output or error when pushing. The script still can rely on command exit status, however.
2014-01-05 12:12:41 +08:00
Yao Wei Tjong 姚伟忠
ff1c73170a For Travis CI - attempt to fix git push from detached HEAD.
[ci skip]
2013-12-30 23:02:13 +08:00
Yao Wei Tjong 姚伟忠
87e28cef8e For Travis CI - append original commit hash and message for reference.
[ci skip]
2013-12-29 16:04:04 +08:00
Yao Wei Tjong 姚伟忠
f0f2d1f0e2 For Travis CI - ensure automated commit does not trigger another CI.
[ci skip]

Attempt to consolidate to use the same GitHub token for both urho3d/Urho3D.git and urho3d/urho3d.github.io.git repositories.
2013-12-28 21:30:54 +08:00
Yao Wei Tjong 姚伟忠
614cbe2bb6 For Travis CI - automate committing of scripting APIs changes.
[ci skip]
2013-12-28 16:08:22 +08:00
Yao Wei Tjong 姚伟忠
4da5b49361 For Travis CI - increase log level of apt-get command. [ci skip] 2013-12-27 12:30:20 +08:00
Yao Wei Tjong 姚伟忠
fcfeb6aad2 Add shared library type into Travis CI build test matrix.
Site documentation update is skipped when building shared library type.
2013-12-24 13:54:07 +08:00
Yao Wei Tjong 姚伟忠
2748d2bea6 Add abort mechanism to prevent error to bring the site documentation down. 2013-12-23 22:58:39 +08:00
Yao Wei Tjong 姚伟忠
c26f459d22 Move header & footer html template to urho.github.io.
Only do rsync when make doc is successful.
2013-12-22 18:15:17 +08:00
Yao Wei Tjong 姚伟忠
4031b4b2e4 Skip documentation update if CI build is invoked not on master branch.
Also:
- Setup doxygen configuration on the fly to use minimal theme and to produce SVG instead of PNG.
- Change how the GH_TOKEN is supplied as the GIT version in Travis VM (Ubuntu) does not seem to read the credentials from file store correctly.
- Only generate site documentation after the CI build test has passed.
- Add Ubuntu PPA to install a more recent version of Doxygen.
2013-12-22 17:17:50 +08:00
Yao Wei Tjong 姚伟忠
0b60fc327e Skip documentation update if CI build is invoked due to a pull request. 2013-12-21 16:45:32 +08:00
Yao Wei Tjong 姚伟忠
4031f7dd06 Update Rakefile to supply GIT credential at the correct directory. 2013-12-20 19:12:51 +08:00
Yao Wei Tjong 姚伟忠
bd39347e3a Attempt to automate deployment of site documentation using Travis CI. 2013-12-20 15:30:09 +08:00