Commit Graph

2494 Commits

Author SHA1 Message Date
Jason Perkins
a4a8ee19f8 Merge pull request #507 from Blizzard/rule-cpp-output
Allow rules to generate code that subsequently gets compiled.
2016-06-10 13:58:38 -04:00
Tom van Dijck
397d480a46 Merge pull request #504 from Blizzard/parent-to-classnew
provide the parent to class.new
2016-06-10 10:42:43 -07:00
Tom van Dijck
5b24ad2c94 Merge pull request #503 from Blizzard/linkgroups-api
https://github.com/premake/premake-core/wiki/linkgroups
2016-06-10 10:42:03 -07:00
Tom van Dijck
1153156e0e Merge pull request #508 from Blizzard/shallow-copy
Add table.shallowcopy
2016-06-10 10:00:59 -07:00
Tom van Dijck
cf55c15ff0 Merge pull request #509 from Blizzard/fix-usage-of-bit32
Fix usage of bit32.arshift
2016-06-10 09:10:08 -07:00
Tom van Dijck
2e8a26df5c Fix usage of bit32.arshift
added unit-test
2016-06-09 18:12:06 -07:00
Tom van Dijck
9282ab4f36 Add table.shallowcopy 2016-06-09 18:01:17 -07:00
Tom van Dijck
d6d36c6b18 Allow rules to generate code that subsequently gets compiled. 2016-06-09 17:56:10 -07:00
Tom van Dijck
38f0c6154c provide the parent to class.new 2016-06-08 11:31:13 -07:00
Tom van Dijck
2a67664fda linkgroups api. 2016-06-08 11:27:13 -07:00
Jason Perkins
1d817779df Merge branch 'release-v5.0.0-alpha9' 2016-06-06 19:15:00 -04:00
Jason Perkins
a6a5dbe488 Restore dev version number 2016-06-06 19:14:49 -04:00
Jason Perkins
68b86d4e29 Merge branch 'release-v5.0.0-alpha9' 2016-06-06 18:54:09 -04:00
Jason Perkins
754ac2b9c4 Adjust packaging script to fetch version number from new location 2016-06-06 18:41:14 -04:00
Tom van Dijck
c67782c0e3 Merge pull request #501 from premake/tvandijck-appveyor
Adding appveyor yaml script to build on appveyor.com for windows.
2016-06-06 09:16:53 -07:00
Tom van Dijck
c4e4389f33 Create appveyor.yml
update README.MD to point to appveyor.
2016-06-06 09:15:03 -07:00
Samuel Surtees
5b5ef74331 Merge pull request #499 from mversluys/master
Improvements to http.get and http.download
2016-06-06 13:06:19 +10:00
Jason Perkins
7f0ceff074 Fix crashing bug when --test-only argument is used to select a single ttest 2016-06-03 17:00:06 -04:00
Jason Perkins
1de49ee482 Update version and change log for alpha9 release 2016-05-31 11:22:50 -04:00
Jason Perkins
920c6bb35b Merge pull request #498 from starkos/test-module
Integrate testing module into premake-core
2016-05-31 11:11:31 -04:00
Matthew Versluys
f26c07baee Added timeout option to http.get/download
Allows setting a maximum timeout for a http request.
2016-05-29 10:07:37 -07:00
Mathew Versluys
31b22502b3 Improvements to http.get and http.download
There was an undocumented return code from http.download which was the
numerical CURL error code.

This has been replaced with the HTTP response code. The return for
http.download is now error message, HTTP response code. This could
break code that was relying on the CURL error but my light research is
that users of this call were checking for the error message being “OK”
and that functionality is preserved.

http.get has been updated to have a consistent return signature to
http.download and now returns the result, error message, HTTP response
code. The error message is now set to “OK” to match http.download.

These changes abstract this api from curl and make the focus http.

Cleaned up the code to make it easier to follow and removed some memory
leaks.

http.get and http.download would leak if headers were supplied.

http.get would leak the string buffer if curl_init failed.
2016-05-28 14:05:06 -07:00
Jason Perkins
1339933a01 Add a bit of organization and documentation to the code, make it easier to follow 2016-05-26 19:57:27 -04:00
Jason Perkins
3283b1d141 Consolidate and clean up the test runner logic and associated environment hooks 2016-05-25 16:55:49 -04:00
Jason Perkins
8cc046fa1b Break up the test runner and make the logic easier to follow 2016-05-20 20:13:04 -04:00
Jason Perkins
e95b23a7b3 Use module symbol "m" in place of "test", free that up for other people to use 2016-05-20 19:14:08 -04:00
Jason Perkins
b240131d09 Split test declarations and stubs out into their own files; improve encapsulation a bit 2016-05-18 15:56:04 -04:00
Jason Perkins
e0e988eccb Move testing framework into a core module 2016-05-16 16:32:35 -04:00
Tom van Dijck
780cd5f717 Merge pull request #497 from mversluys/master
Support for Authenticated http requests
2016-05-16 11:03:24 -07:00
Mathew Versluys
e7c855f089 Removed (now) unneeded table test from get_headers(). 2016-05-15 22:35:34 -07:00
Mathew Versluys
b9001f0d71 Cleanup of http.get and http.download
All options are now provided via a table which currently supports progress, userpwd, username, password, headers and should be extensible to add more options.

The previous signature of these funtions is supported for backward compatibility.

It appears that there were logic errors in the existing code such that a progress function would have only worked as the last parameter and would not work if headers were supplied. This is fixed such that the old signature will work if progress and headers are supplied.
2016-05-15 22:29:01 -07:00
Matthew Versluys
93f3ff3bb8 Fix for unused parameter warning on posix 2016-05-15 12:08:47 -07:00
Matthew Versluys
4d352ff01b Bug fix for os_getpass on Windows
Verified as working with Visual Studio 2015.
2016-05-15 11:27:02 -07:00
Mathew Versluys
d5e53a0be0 Added os.getpass
Prompt the user to enter a password and don't encho their entry.
2016-05-14 11:59:21 -07:00
Mathew Versluys
a51a4cfd6b Version used in user agent used well defined version.
Moved project definitions from premake.c to premake.h and added PREMAKE_ prefixes.
Utilized PREMAKE_VERSION in the user agent when making curl requests.
2016-05-14 11:01:37 -07:00
Mathew Versluys
8a03bbb065 Fixes for authentication functionality.
The userpwd paramater for http.get and http.download is now correctly optional.

Verified that it doesn't collide with the optional headers parameter to these functions because the type signature is different (headers is passed in as a table).

Added a user agent which is required to interface with GitHub APIs.
2016-05-14 09:49:35 -07:00
Mathew Versluys
0be3374acd Support for username/password in HTTP requests
http.get and http.download now accept an optional additional parameter which allows specifying the user name and password that will used in the request in the format of username:password.

This utilizes the default authentication of curl which is basic authentication.
This functionality will be utilized for authenticated http retrieval from GitHub APIs.
2016-05-13 13:38:17 -07:00
Tom van Dijck
1696a65dff Merge pull request #496 from starkos/unit-test-fixes
Catch older unit tests up to the latest standards
2016-05-12 17:41:13 -07:00
Jason Perkins
55ff2cded2 Merge pull request #495 from ratzlaff/master
Updating ignore list for xcode bits
2016-05-12 19:58:36 -04:00
Jason Perkins
e6bfd500b0 Catch older unit tests up to the latest standards 2016-05-12 19:56:04 -04:00
Ben Ratzlaff
8db525bfae Merge branch 'master' of https://github.com/premake/premake-core 2016-05-11 20:57:03 -07:00
Jason Perkins
ea5cb0961e Merge pull request #491 from g012/ToolsetFilter
Add ability to filter configurations by toolset
2016-05-09 12:12:22 -04:00
Ben Ratzlaff
172a96b9cd Merge branch 'master' of https://github.com/premake/premake-core 2016-05-08 20:23:26 -07:00
paskal
1227d5c620 Fixed testing of filtering. 2016-05-08 01:35:06 +02:00
paskal
c44e7c4ed6 Removed filter toolset patch prints 2016-05-08 01:35:06 +02:00
Ben Ratzlaff
da5682a630 Added xcode workspace directories to the ignore list 2016-05-05 22:41:34 -07:00
Samuel Surtees
4b2a3f3eac Merge pull request #489 from Blizzard/io-read-write
add 'io.writefile' and 'io.readfile' shortcut methods.
2016-05-05 20:40:17 +10:00
Tom van Dijck
48aea04b94 add 'io.writefile' and 'io.readfile' shortcut methods. 2016-05-04 16:10:10 -07:00
Jason Perkins
7859391d33 Merge pull request #486 from ThomasKugler/DependsUponXsd
Set DependsUpon to xsd files.
2016-05-03 11:48:01 -04:00
paskal
be9f5c079e Merge commit 'bf94b638f36f996b1ad208cf5fbb564890650704' of https://github.com/tritao/premake-core 2016-05-03 11:03:47 +02:00