Commit Graph

453 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
e5ab1a939f For Travis CI - stash push and pop silently.
[ci only: master, Annotate]
2015-09-21 18:55:05 +08:00
Yao Wei Tjong 姚伟忠
39eed8a481 For Travis CI - do not include fastcomp-clang as subtree.
[ci only: Annotate]
2015-09-20 16:16:25 +08:00
Yao Wei Tjong 姚伟忠
448f3ebf44 Fix the Rewriter not saving to filesystem issue.
It turns out that RefactoringTool and RefactoringCallback classes are not made for each other.
For Travis CI - attempt to push the annotated source files into a new branch. DO NOT check out from this branch, instead just use GitHub GUI to browse through the changes.
[ci only: Annotate]
2015-09-20 15:57:37 +08:00
Yao Wei Tjong 姚伟忠
b3e01a1424 Add another skeleton project for for script binding extractor tool.
[ci only: Annotate]
2015-09-16 00:12:46 +08:00
Yao Wei Tjong 姚伟忠
f2289b10e1 Avoid hardcoding to improve the chance of using it on Windows host.
[ci annotate]
2015-09-15 14:57:06 +08:00
Yao Wei Tjong 姚伟忠
440bc484e7 Add skeleton project for Annotator tool.
Currently it just dumps the AST out instead of actually annotating.
[ci only: master, Annotate]
2015-09-14 20:13:26 +08:00
Yao Wei Tjong 姚伟忠
0043642151 For Travis CI - setup build job for annotate rake task.
[ci only: Annotate]
2015-09-12 20:52:37 +08:00
Yao Wei Tjong 姚伟忠
a3e0072e79 Suppress policy CMP0054 dev warnings on Android build.
Enhance android rake task to have additional option to install the APK before testing it.
[ci only: Android]
2015-09-06 13:05:30 +08:00
Yao Wei Tjong 姚伟忠
86194164b5 Avoid name clash with EMSCRIPTEN environment variable. Close #871.
[ci only: Emscripten]
2015-09-03 13:41:31 +08:00
Yao Wei Tjong 姚伟忠
373d989d53 For Travis CI - keep the backup logic simple and stupid.
Related to commit 9d1a66d108
[ci skip]
2015-08-15 11:18:06 +08:00
Yao Wei Tjong 姚伟忠
f96e445cf4 For Travis CI - using relpath to backup & only restore if backup exist.
[ci only: Android] [ccache clear]
2015-08-15 00:11:10 +08:00
Yao Wei Tjong 姚伟忠
9d1a66d108 For Travis CI - when using cache store, backup .git before clearing.
Remove out-of-place C++ header file.
[ci only: Android] [ccache clear]
2015-08-14 23:47:18 +08:00
Yao Wei Tjong 姚伟忠
053fd0f31c For Travis CI - when clearing ccache stats, avoid triggering Coverity.
[ci skip]
2015-08-14 13:56:12 +08:00
Yao Wei Tjong 姚伟忠
e0068c5c9d For Travis CI - initial attempt to switch on the database subsystem. 2015-08-10 01:51:25 +08:00
Yao Wei Tjong 姚伟忠
581cb70ea1 For Travis CI - limit Coverity scanning to master branch only.
[ci skip]
2015-06-30 21:03:04 +08:00
Yao Wei Tjong 姚伟忠
342db03895 For Travis CI - update rake task to use _data/about.yml for credits.
[ci skip]
2015-06-17 00:06:25 +08:00
Yao Wei Tjong 姚伟忠
3b099a149b For Travis CI - all bar none for Emscripten samples.
Adjust log messages for consistency sake.
2015-05-23 21:53:55 +08:00
Yao Wei Tjong 姚伟忠
5fd01b739e For Travis CI - add some of the excluded samples back to Emscripten CI.
Fix package upload rake task failed to skip cleanly for MinGW CI build for D3D9.
Test [ci package] for [ci only: Emscripten] again.
2015-05-23 20:37:37 +08:00
Yao Wei Tjong 姚伟忠
2b3a2aabd2 For Travis CI - remove Emscripten CI checkpoints. 2015-05-22 18:51:07 +08:00
Yao Wei Tjong 姚伟忠
5b1af2d116 For Travis CI - increase Coverity Scan threshold to 100. 2015-05-19 13:56:45 +08:00
Yao Wei Tjong 姚伟忠
f77985447d For Travis CI - set the default download in SF.net automatically. 2015-05-18 10:56:34 +08:00
Yao Wei Tjong 姚伟忠
985d529fbf For Travis CI - fix the bash variable substitution in commit message.
[ci skip]
2015-05-17 21:00:32 +08:00
Yao Wei Tjong 姚伟忠
8238ba6ec8 For Travis CI - correct typo and move the scan threshold to master. 2015-05-17 13:19:28 +08:00
Yao Wei Tjong 姚伟忠
8fe7f95c0a For Travis CI - limit the Converity Scan frequency based on cache miss.
Current scanning threshold is set to 20, i.e. it only scan when there are 20 or more actual compilation call.

Only send job notification email to human. Only propagate root commit SHA and message submitted by human.
2015-05-17 13:01:11 +08:00
Yao Wei Tjong 姚伟忠
4f0647e4a2 For Travis CI - temporarily disable ccache for Emscripten CI build.
When Emscripten has released 1.32 it will be reenabled again.
[ci only: Emscripten]
2015-05-16 10:38:43 +08:00
Yao Wei Tjong 姚伟忠
dfab28fed6 Fix iOS host-tool building for Urho3D_universal target.
For Travis CI - when releasing disregard commit message instruction from the last commit being tagged. This is to ensure all CI jobs are run for releasing the artifacts.
[ci package]
2015-05-15 19:21:25 +08:00
Yao Wei Tjong 姚伟忠
a6528e0bbf For Travis CI - fail the Emscripten CI job when test run segfaulted.
But let it passes when the test run bailed out due to emrun timeout.
[ci only: master, Emscripten]
2015-05-14 16:26:27 +08:00
Yao Wei Tjong 姚伟忠
6bcbac468c For Travis CI - skip touching cache objects if earlier command failed.
[ci only: Emscripten]
2015-05-14 12:22:01 +08:00
Yao Wei Tjong 姚伟忠
07a677ac0e For Travis CI - ensure files in cache have timestamp older than source.
This is an attempt to fix stale PCH for Emscripten CI build which is using our own cache-store implementation.
2015-05-13 16:39:17 +08:00
Yao Wei Tjong 姚伟忠
1dd83a7dfe For Travis CI - generalize detection of moving HEAD for topic and PR.
However, we still have to temporarily scale back to not perform full CI jobs on PR because PR from fork cannot get the secured variables decrypted and hence no way to create CI mirror branches.
2015-05-12 22:18:00 +08:00
Yao Wei Tjong 姚伟忠
c2b7143ac9 For Travis CI - still create new branch even when base mirror is found.
Related to commit 09a5f71847.
[ci skip]
2015-05-11 21:01:20 +08:00
Yao Wei Tjong 姚伟忠
09a5f71847 For Travis CI - fail the job when site update or package upload failed.
For topic and PR CI mirror branches, make another attempt to download the cache from the "base" CI mirror branch before creating a new git branch.
2015-05-11 17:36:09 +08:00
Yao Wei Tjong 姚伟忠
bac78d8bae For Travis CI - skip the other tasks when the main ci task was skipped.
[ci only: master]
2015-05-11 00:26:39 +08:00
Yao Wei Tjong 姚伟忠
59e5e65a98 For Travis CI - attempt to enable ccache for remaining Android CI jobs.
[ci only: Android, OSX, Emscripten]
2015-05-10 23:55:51 +08:00
Yao Wei Tjong 姚伟忠
e38d84414f For Travis CI - attempt to enable ccache on Emscripten CI build.
[ci only: Emscripten]
2015-05-10 23:43:53 +08:00
Yao Wei Tjong 姚伟忠
f55d06bc6b For Travis CI - attempt to enable ccache on OSX CI build.
[ci only: OSX]
2015-05-10 23:42:54 +08:00
Yao Wei Tjong 姚伟忠
3df58d874f For Travis CI - add option to perform on selected CI jobs only. 2015-05-10 23:40:49 +08:00
Yao Wei Tjong 姚伟忠
a5f9417469 For Travis CI - adjust build rules for Emscripten CI build. 2015-05-08 22:48:50 +08:00
Yao Wei Tjong 姚伟忠
c30de0f087 For Travis CI - fix CI mirror branches deletion issue. 2015-05-08 22:05:31 +08:00
Yao Wei Tjong 姚伟忠
d19fddb361 For Travis CI - Fix Emscripten CI build.
Log abort message when skipping CI mirror creation/deletion.
2015-05-08 21:15:20 +08:00
Yao Wei Tjong 姚伟忠
fb84bcf179 For Travis CI - tune down email notifications frequency.
Add checkpoint for Emscripten CI build and use it to determine whether to skip make test and/or scaffolding test when running short of time.

For Travis CI - perform the full CI jobs for topic branches and PRs.

For Travis CI - use custom data in .travis.yml for excluding samples.
2015-05-08 18:39:14 +08:00
Yao Wei Tjong 姚伟忠
114d8cdbbd For Travis CI - ci_create_mirrors checks against moving HEAD by itself. 2015-05-07 19:00:06 +08:00
Yao Wei Tjong 姚伟忠
bac54db64c For Travis CI - add notification email back for coverity scan.
Strangely it won't proceed to perform the scan otherwise.
For Travis CI - when performing API documentation update, delayed the creation of CI mirror branches.
2015-05-07 18:03:48 +08:00
Yao Wei Tjong 姚伟忠
5ad7f4b476 Add .gitattributes to fix the languages breakdown report by GitHub.
Thanks to GoogleBot42 for pointing out how to fix this.
The wrong classification of the AngelScript files as 'ActionScript' is not fixable without fixing the issue at the upstream. The github/linguist does not even recognize AngelScript as a language at all at the moment.
2015-05-03 18:37:26 +08:00
Yao Wei Tjong 姚伟忠
2aa2cab2c6 Fix Assimp's CMakeLists.txt so the lib built successfully on Xcode.
Close #709.
For Travis CI - when performing a release, keep the CI mirror branches around for a little longer just in case we need to restart the CI job again due to Travis CI build error.
2015-05-02 21:05:49 +08:00
Yao Wei Tjong 姚伟忠
efab431154 For Travis CI - fix CI mirror branches deletion issue.
Pardon the dust.
2015-05-02 13:21:58 +08:00
Yao Wei Tjong 姚伟忠
547a2d7c8e For Travis CI - fix mirror branch deletion issue on single job branch. 2015-05-02 12:53:06 +08:00
Yao Wei Tjong 姚伟忠
0c6e1ceb42 For Travis CI - only set notification email default when it is not set.
(test successive commits not causing build error again).
2015-05-02 08:34:29 +08:00
Yao Wei Tjong 姚伟忠
a1c801ad04 For Travis CI - set notifications receiver for CI mirror branches.
When build failed or errored in one of the CI mirror branch, notifications will be sent to commiter and author (if different person), similar to master branch.
2015-05-02 08:08:09 +08:00
Yao Wei Tjong 姚伟忠
52ddfbf495 For Travis CI - (test successive commits do not cause build error). 2015-05-02 01:12:56 +08:00
Yao Wei Tjong 姚伟忠
0de428ba3e For Travis CI - skip mirror deletion if there are more commits. 2015-05-02 01:08:27 +08:00
Yao Wei Tjong 姚伟忠
7f55f78a36 For Travis CI - hack Travis to support multi-docs .travis.yml stream.
The CI mirror branches are now created and deleted on the fly. No more overhead to maintain them (i.e. resolving rebase conflict).
This is partial implementation of what has been requested in this feature request https://github.com/travis-ci/travis-ci/issues/3719.
2015-04-29 21:51:15 +08:00
Yao Wei Tjong 姚伟忠
530513750a For Travis CI - allow initial Coverity-Scan branch creation on demand.
[ci skip]
2015-04-29 13:10:14 +08:00
Yao Wei Tjong 姚伟忠
0b64216424 For Travis CI - fix rake ci_rebase task.
Test [ci scan] on demand.
2015-04-27 13:50:56 +08:00
Yao Wei Tjong 姚伟忠
50bc9d5793 Attempt to enable coverity scan to the project. 2015-04-27 06:37:11 +08:00
Yao Wei Tjong 姚伟忠
98863e183a Code clean up to remove temporary workaround for Emscripten. 2015-04-26 16:20:29 +08:00
Yao Wei Tjong 姚伟忠
886cc93d7a For Travis CI - fix RPM packaging build for Raspberry-Pi.
It was broken before the migration to the new build infra.
2015-04-24 22:48:28 +08:00
Yao Wei Tjong 姚伟忠
c74dda6f75 For Travis CI - Migrate to new container-based build infra. 2015-04-22 15:19:02 +08:00
Yao Wei Tjong 姚伟忠
c16ed4073c Suppress Clang compiler warnings when using ccache. 2015-04-18 15:56:01 +08:00
Yao Wei Tjong 姚伟忠
403691d50c Enhance rake cmake/make tasks to pass workaround env var for ccache.
[ci skip]
2015-04-17 22:25:52 +08:00
Yao Wei Tjong 姚伟忠
810929d13c For Travis CI - readjust the rebase order so Emscripten comes last. 2015-04-17 01:41:08 +08:00
Yao Wei Tjong 姚伟忠
9e8046efc7 Fine tune 'rake make' task to use physical CPU count for Emscripten. 2015-04-13 17:26:10 +08:00
Yao Wei Tjong 姚伟忠
efe35b27a9 For Travis CI - temporarily reorder CI rebase sequence.
This is for investigating random build error on Mac OS X build environment.
2015-04-09 15:47:17 +08:00
Yao Wei Tjong 姚伟忠
b285bd2325 Enhance the rake make task to also support Ninja. 2015-04-08 17:09:55 +08:00
Yao Wei Tjong 姚伟忠
c93327bf00 For Travis CI - wrap the 'make package' inside 'setarch' command.
Related to fc14b30e42. [ci package]
2015-04-07 18:08:26 +08:00
Yao Wei Tjong 姚伟忠
b468eac53e Only supply the CCACHE environment variable when user hasn't done it. 2015-04-02 16:17:35 +08:00
Yao Wei Tjong 姚伟忠
8ab5ffac52 Add a small chapter on how to setup ccache to work correctly. 2015-04-02 00:06:44 +08:00
Yao Wei Tjong 姚伟忠
601dfc4603 Enhance the 'rake make' task to utilise all the logical cpu cores.
[ci package]
2015-03-31 17:08:21 +08:00
Yao Wei Tjong 姚伟忠
bcf5286158 For Travis CI - attempt to enable integration tests in Emscripten-CI. 2015-03-14 11:04:12 +08:00
Yao Wei Tjong 姚伟忠
8a77399bd0 Fix integration tests execution for Emscripten platform.
A test case is considered passed when the html exits as the result of emscripten_force_exit() function being called, which happens when the engine's elapsed time reaches URHO3D_TEST_TIMEOUT seconds. When something goes wrong, the engine's elapsed time does not progress as per normal, in this case the emrun's timeout would kick in and terminate the test case with failed exit status. The EMRUN'S timeout is set to be 2 times URHO3D_TEST_TIMEOUT auotmatically.
Add new build option EMSCRIPTEN_EMRUN_BROWSER to select which browser to use for testing. Default is 'firefox'. Refer to https://github.com/kripken/emscripten/issues/3234 to apply the recommended Firefox preference setting for emrun.
2015-03-12 18:04:16 +08:00
Yao Wei Tjong 姚伟忠
0fe597223f Add initial support for integration tests on Emscripten platform.
At the moment the 'make test' cannot be run non-interactively yet on Linux host and Mac OS X host systems due to what-could-be a bug in 'emrun' script. The issue with 'emrun' has been reported to upstream (https://github.com/kripken/emscripten/issues/3234).
2015-03-07 12:00:47 +08:00
Yao Wei Tjong 姚伟忠
6a145befa5 Misc. clean up. [ci skip] 2015-03-05 21:57:31 +08:00
Yao Wei Tjong 姚伟忠
6ef0f702c7 For Travis CI - sync the samples first then update json data file.
[ci skip]
2015-03-05 17:31:10 +08:00
Yao Wei Tjong 姚伟忠
6c3d32d64a Use Urho3D custom HTML shell for Emscripten build.
Simplify the custom command for share data generation since we are not going to "fix" the UUID issue of the file_packager.py anymore. Although this would mean the slightest change in the output JS file caused by UUID change could force a long relink process in our build.
For Travis CI - upload Emscripten HTML5 samples to Urho3D main website.
[ci package]
2015-03-05 16:23:59 +08:00
Yao Wei Tjong 姚伟忠
4d34d0a626 Add new Emscripten build option for creating shared data file. 2015-03-03 23:32:27 +08:00
Yao Wei Tjong 姚伟忠
9612a5c164 For Travis CI - add CI build jobs for Raspberry Pi 2. 2015-02-27 22:45:35 +08:00
Yao Wei Tjong 姚伟忠
4b6951f9f4 For Travis CI - return exit code from worker thread correctly. 2015-02-26 17:15:32 +08:00
Yao Wei Tjong 姚伟忠
e780854eec Enhance Rakefile to perform xcodebuild install in a worker thread.
The main Ruby thread outputs '.' character while waiting for the worker thread to complete. This should avoid Travis-CI from thinking the install process has stalled.
2015-02-26 15:43:07 +08:00
Yao Wei Tjong 姚伟忠
d3f90cbe08 Make the URHO3D_LUA build option available for Emscripten build. 2015-02-16 07:23:10 +08:00
Yao Wei Tjong 姚伟忠
8be7896e44 For Travis CI - switch back to use Linux CI build environment.
Add Emscripten-CI into the CI-mirror branches list.
2015-02-13 21:42:07 +08:00
Yao Wei Tjong 姚伟忠
85c893a83d Attempt to enable CI build for Emscripten. 2015-02-13 21:31:59 +08:00
Yao Wei Tjong 姚伟忠
19ab396e74 Add new Emscripten/CMake toolchain file based on Urho3D convention.
Use EMSCRIPTEN_ROOT_PATH environment variable to specify the root path to the emscripten, instead of the original EMSCRIPTEN environment variable exported in emsdk_set_env.sh.
This is because the original EMSCRIPTEN environment variable name clashes with our build scripts.
2015-02-13 21:23:05 +08:00
Yao Wei Tjong 姚伟忠
564b77c39f Fix Ninja build by adding directory containing PCH to its search path.
Officially add Ninja build support. Close #653.
2015-02-06 13:49:32 +08:00
Yao Wei Tjong 姚伟忠
395b926d26 Rename Readme.md to README.md. Replace history section with link.
[ci package]
2015-02-05 11:07:18 +08:00
CrackedP0t
70fd3c7988 Rename Readme.txt to Readme.md. 2015-02-05 10:49:58 +08:00
Yao Wei Tjong 姚伟忠
cfff44873f Bump missed out files. [ci skip]
$ for f in `git grep -l '2008-2014 the Urho3D project'`; do perl -pi -e 's/2008-2014 the Urho3D project/2008-2015 the Urho3D project/g' $f; done
2015-02-01 08:16:05 +08:00
Yao Wei Tjong 姚伟忠
8e81d3ff36 Use regex replacement to handle path with spaces in between correctly.
Enhance build scripts to handle source tree and build tree with spaces.
Fix PCH generation with incorrect compiler flags caused by -fPIC and -fpic from being added at the same time.
Fix compiler warning on Android platform with PCH enabled on the external main project due to CMake bug in 'VISIBILITY_INLINES_HIDDEN' implementation.
Close #637.
2015-01-29 20:15:13 +08:00
Yao Wei Tjong 姚伟忠
05dd995b85 Refactor all the codes and scripts to use the renamed 'bin' subdir. 2015-01-18 21:40:54 +08:00
Yao Wei Tjong 姚伟忠
f865522e1d Make the xcpretty filter optional for the 'rake make' task.
Minor documentation update.
2015-01-15 23:32:15 +08:00
Yao Wei Tjong 姚伟忠
02a5945b83 For Travis CI - Display where the SDK is being installed to in the log.
Minor document update on new Rake tasks.
2015-01-12 14:17:33 +08:00
Yao Wei Tjong 姚伟忠
74296e8123 Clean up the rake task comment. [ci skip] 2015-01-08 12:23:27 +08:00
Yao Wei Tjong 姚伟忠
2ad47fc0ff Enhance 'rake cmake' and 'rake make' tasks to take optional arguments.
When the '<platform-specific>_build_tree' or 'build_tree' argument is provided then use it as the build tree path, otherwise use the default build tree path as before.
The '<platform-specific>_build_tree' takes precedence over 'build_tree'.
2015-01-08 11:42:12 +08:00
Yao Wei Tjong 姚伟忠
2e9d9f4806 Fix MinGW build on Windows host system. 2015-01-06 17:25:58 +08:00
Yao Wei Tjong 姚伟忠
352842b0fa For Travis CI - skip the site update when it is already done earlier. 2015-01-06 13:28:09 +08:00
Yao Wei Tjong 姚伟忠
dddce6bec1 For Travis CI - remove the packages after successfully uploaded to FRS.
So that they do not get re-uploaded again the second time when uploading the 64-bit RPM package with URHO3D_USE_LIB64_RPM build option set.
[ci package]
2015-01-05 22:31:32 +08:00
Yao Wei Tjong 姚伟忠
1cbbb6b805 Finalize SDK-like include dirs clean up. Fix build using MSVC. 2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
b654478715 For Travis CI - also use DESTDIR=~ when installing on OSX host. 2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
a4a4cde236 Refactor all CMake toolchains to reset CMAKE_INSTALL_PREFIX variable.
Add new build options for specifying tool-prefix and target-sysroot in cross-compiling build.
Add new IOS_SYSROOT variable to store the path to iOS sysroot and use it to set CMAKE_FIND_ROOT_PATH variable.
Now also generate pkg-config Urho3D.pc for iOS platform.
For Travis CI - simplify SDK installation logic. Use DESTDIR=~ to avoid sudo.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
1b465fb704 Clean up FindUrho3D.cmake module.
Add new build options to override 64-bit Linux package setup for Debian and Redhad -based host systems.
For Travis CI - fix 64-bit RPM package generation to install library in /usr/lib64, also fix external project build test using Urho3D library from SDK.
2015-01-04 22:32:41 +08:00
Yao Wei Tjong 姚伟忠
0c2e47a42d Use SDK include dir for SDL to fix Direct3D MinGW build.
For Travis CI - Correct the DESTDIR for MinGW CI build because cross-compiling MinGW is rooted.
2015-01-04 22:32:41 +08:00
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