Commit Graph

453 Commits

Author SHA1 Message Date
Yao Wei Tjong 姚伟忠
0e8b3cee3f For CI - automatically bump copyright when crossing a new year. 2016-01-26 21:46:59 +08:00
Yao Wei Tjong 姚伟忠
aaf86f4bc1 For Travis CI - ensure commits arrive in the correct sequence. Take 2. 2016-01-25 19:47:07 +08:00
Yao Wei Tjong 姚伟忠
ff0f2b4d61 Add rake tasks for Urho3D maintainers. 2016-01-25 15:58:29 +08:00
Yao Wei Tjong 姚伟忠
831da98b49 For Travis CI - ensure the commits arrive in the correct sequence. 2016-01-24 11:53:18 +08:00
Yao Wei Tjong 姚伟忠
45af671009 For Travis CI - increase the chance of successful iOS packaging build. 2016-01-24 00:51:23 +08:00
Yao Wei Tjong 姚伟忠
705e06dd1c Remove an unprintable \015 character in the cmake_codelite.sh.
The character had caused the script not operable.

For Travis CI and AppVeyor - bug fixes and improvement to make the CI builds more stable, hopefully.
2016-01-23 23:39:06 +08:00
Yao Wei Tjong 姚伟忠
90c97b95c4 Fix try_run logic in FindUrho3D module to support MSVC static runtime.
Close #1140.
2016-01-22 19:13:51 +08:00
Yao Wei Tjong 姚伟忠
105aa2699e Use Readline library when it is found for Lua and isql. 2016-01-22 02:05:30 +08:00
Yao Wei Tjong 姚伟忠
295c4c6a05 For Travis CI - new commit msg pattern to trigger 64-bit only build. 2016-01-22 00:15:45 +08:00
Yao Wei Tjong 姚伟忠
cff5fe2d3d For Travis CI - enable URHO3D_LUAJIT build option on iOS CI builds.
Upgrade to CMake 3.4.1 for OSX CI build jobs.
Close #1146
2016-01-21 19:28:02 +08:00
Yao Wei Tjong 姚伟忠
da3a82979b Bake URHO3D_TESTING to ensure downstreams get consistent struct size. 2016-01-21 00:01:28 +08:00
Yao Wei Tjong 姚伟忠
bdcf7b242c For AppVeyor - attempt to auto RDP so that make test can be run.
Also fix the package upload problem for AppVeyor CI jobs.
2016-01-15 20:29:59 +08:00
Yao Wei Tjong 姚伟忠
7051e07110 For Travis CI - enable LuaJIT for Android 64-bit (arm64-v8a).
[ci skip]
2016-01-13 22:17:17 +08:00
Yao Wei Tjong 姚伟忠
f140bae2e3 For Travis CI - revert back to disable LuaJIT on ARM64 for the moment.
[skip appveyor] [ci only: Android]
2016-01-13 10:20:02 +08:00
Yao Wei Tjong 姚伟忠
71a3679d3c Update the documentation for LuaJIT 2.1 upgrade.
For Travis CI - attempt to enable LuaJIT for Android 64-bit (arm64-v8a).
[skip appveyor] [ci only: Android]
2016-01-13 01:35:36 +08:00
Yao Wei Tjong 姚伟忠
d7fdd033c2 For Travis CI - rename the web samples json data file correctly.
[ci skip]
2016-01-07 09:33:56 +08:00
Yao Wei Tjong 姚伟忠
21b01fcd5b Refactor how the EXE and SHARED linker flags are being setup. 2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
bc64b053a3 Bake URHO3D_LUAJIT as downstream project needs extra linker flags.
Without these extra linker flags the executable would most likely get a runtime error, especially when targeting 64-bit OSX platform.
2016-01-06 16:38:59 +08:00
Yao Wei Tjong 姚伟忠
3c7b37c972 For Travis CI & AppVeyor - simplify SDK installation process.
The wait_for_block() was originally needed for iOS platform as it used to install very slowly (exceeds 10 minutes) due to configuration mistake. It should install just in a few minutes now.
2016-01-06 16:38:58 +08:00
Yao Wei Tjong 姚伟忠
431559c2bd For Travis CI & AppVeyor - unified 'ci' rake task and spring cleaning. 2016-01-06 16:38:58 +08:00
Yao Wei Tjong 姚伟忠
668d89eca5 For Travis CI - skip appveyor when test building clang-tool branch.
[ci skip]
2015-12-23 17:17:50 +08:00
Yao Wei Tjong 姚伟忠
e1647d18dd Make Urho3D_universal custom target as one of the default target.
Close #1111.
2015-12-23 10:44:27 +08:00
Yao Wei Tjong 姚伟忠
df1a6d358f Prevent deploying the *.pak files to HTML5 samples directory.
Close #1110.
[ci skip]
2015-12-22 22:43:45 +08:00
Yao Wei Tjong 姚伟忠
a2122c3063 For downstream - fix try_compile logic on iOS build.
[skip appveyor] [ci only: OSX]
2015-12-22 22:15:14 +08:00
Yao Wei Tjong 姚伟忠
3732d7f341 For Travis CI - attempt to fix iOS 64-bit packaging build.
Fix #1079.
2015-12-22 21:35:03 +08:00
Yao Wei Tjong 姚伟忠
1cd242273e Verify found Urho3D library has matching ABI with the chosen compiler.
Check the CMake minimum version before setting project name as recommended by CMake.
Minor documentation update on how to setup downstream projects using Urho3D library as external library.
For AppVeyor - attempt to add scaffolding test using Urho3D SDK.
2015-12-14 22:43:00 +08:00
Yao Wei Tjong 姚伟忠
72f954dad0 Enhance Urho3D-CMake-common module to auto find Urho3D library. 2015-12-13 17:13:07 +08:00
Yao Wei Tjong 姚伟忠
a3b961eab1 For site documentation - reduce number of columns for class index page.
[ci skip]
2015-11-30 11:07:54 +08:00
Yao Wei Tjong 姚伟忠
974867cc42 For Travis CI - another attempt to remove Android SDK before packaging.
Fix a typo in custom commands for Urho3D universal build target.

[ci package] [ci only: Android, OSX] [skip appveyor]
2015-11-23 13:07:54 +08:00
Yao Wei Tjong 姚伟忠
2d39e2823e Simplify "logic" for 'Urho3D_universal' custom target.
For Travis CI - adjust heuristic rule for cutting of iOS universal binary build.
For Travis CI - clean up the Android SDK before performing the packaging for Android build.

(Test quotation marks escape in commit message)
[ci only: Android, OSX] [skip appveyor] [ci package]
2015-11-23 11:58:18 +08:00
Yao Wei Tjong 姚伟忠
90edf01c7c For Travis CI - avoid CMake 3.4 to fix #1043.
Another attempt to fix Android Intel Atom CI builds.

[skip appveyor] [ci package] [ci only: OSX, Android]
2015-11-22 16:47:38 +08:00
Yao Wei Tjong 姚伟忠
d4929af473 For Travis CI - attempt to fix Android Intel Atom CI builds.
Alter the debug print for troubleshooting iOS CI builds.
[ci package] [skip appveyor] [ci only: Android, OSX]
2015-11-22 12:01:27 +08:00
Yao Wei Tjong 姚伟忠
3ff517743b For Travis CI - set URHO3D_DEPLOYMENT_TARGET build option to 'generic'. 2015-11-22 09:48:43 +08:00
Yao Wei Tjong 姚伟忠
31a3c81e26 For Travis CI - escape double quotes in commit message. 2015-11-22 09:48:43 +08:00
Yao Wei Tjong 姚伟忠
d4c5cf1760 For AppVeyor - remove restriction to only build on master branch.
[ci skip]
2015-11-11 13:55:30 +08:00
Yao Wei Tjong 姚伟忠
b81547d35a For AppVeyor - switch to Debug build configuration on normal CI build.
This is in the hope that msbuild will build faster without any optimisation.
[ci only: AppVeyor]
2015-11-09 21:34:54 +08:00
Yao Wei Tjong 姚伟忠
c073488069 For AppVeyor - fix artifact upload to sourceforge.net.
[ci package]
2015-11-09 18:18:12 +08:00
Yao Wei Tjong 姚伟忠
95580f6ba0 For Appveyor - first attempt to enable 32-bit CI jobs on Windows host. 2015-10-31 23:13:19 +08:00
Yao Wei Tjong 姚伟忠
60e971eefe For Travis CI - add new CI job for RPI2 with NEON switch on. 2015-10-17 11:39:19 +08:00
Yao Wei Tjong 姚伟忠
31e0f09999 Fix android rake task to work with multiple devices attached to adb. 2015-10-16 16:24:06 +08:00
Yao Wei Tjong 姚伟忠
d094d85c98 For Travis CI - update the rake task to use new Doxyfile's location.
[ci only: master]
2015-10-03 11:28:21 +08:00
Yao Wei Tjong 姚伟忠
9de78c0a3d Refactor dependency setup for 'doc' target. Close #879.
The doc target now only really does its build action when it detects its documentation is out of date, similar to how other targets behaves.
2015-09-30 10:04:30 +08:00
Yao Wei Tjong 姚伟忠
f34205fd3b More scaffolding for Clang-tools build. Pardon our dust.
[ci only: Annotate]
2015-09-26 23:35:33 +08:00
Yao Wei Tjong 姚伟忠
e85b40800b Add a temp. measure to fix non-suitable PCH error due to mutating code.
[ci only: master, Annotate]
2015-09-25 17:29:35 +08:00
Yao Wei Tjong 姚伟忠
a25f982043 Add more scaffolding logic in build system for AutoBinder invocation.
[ci only: Annotate]
2015-09-25 17:00:45 +08:00
Yao Wei Tjong 姚伟忠
ba837af5a4 Add skeleton project for AutoBinder tool.
[ci only: Annotate]
2015-09-24 19:57:18 +08:00
Yao Wei Tjong 姚伟忠
36eb140993 For Travis CI - upgrade GCC & CMake for Clang-tool building on the fly.
[ci only: Annotate]
2015-09-23 17:52:05 +08:00
Yao Wei Tjong 姚伟忠
e798ee4dcf For Travis CI - setup build infra for test running Autobinder tool.
[ci only: Annotate]
2015-09-23 13:38:28 +08:00
Yao Wei Tjong 姚伟忠
4969021b87 For Travis CI - use same commit message for all CI mirror branches.
[ci scan]
2015-09-23 11:39:33 +08:00
Yao Wei Tjong 姚伟忠
1cc28dfe1c Make it possible to invoke Annotate tool on already annotated codes.
[ci annotate]
2015-09-21 19:23:04 +08:00
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