Commit Graph

2584 Commits

Author SHA1 Message Date
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
Samuel Surtees
ef03d2a475 Merge pull request #487 from Blizzard/gmake-fixes
Gmake fixes
2016-05-03 18:38:35 +10:00
Samuel Surtees
2e97574003 Merge pull request #488 from starkos/fix-rule-xml-utf8
Fix casing on Visual Studio rule XML encoding entity
2016-05-03 18:36:45 +10:00
Tom van Dijck
43547450dd Fix precompiled header file lookup in gmake backend. 2016-05-02 16:55:50 -07:00
Jason Perkins
df7adbfe50 Fix casing on Visual Studio rule XML encoding entity 2016-05-02 19:30:45 -04:00
Tom van Dijck
1dbc1ea784 properly escape defines. 2016-05-02 13:57:12 -07:00
Thomas Kugler
f967bf3932 Set DependsUpon to xsd files.
Related tp #416.
2016-04-27 11:08:02 +02:00
Tom van Dijck
921be76b06 Merge pull request #485 from premake/update-changes
Fill in a partial list of changes since the previous beta
2016-04-25 15:04:44 -07:00
Jason Perkins
94428eb58d Fill in a partial list of changes since the previous beta 2016-04-25 17:40:01 -04:00
Tom van Dijck
7450dd133b Update Readme.md
Update the readme.md to point to new jenkins server for windows build.
I moved away from an Azure virtual machine onto a dedicated 8-core blade through delimiter.com
2016-04-24 11:41:08 -07:00
Samuel Surtees
84dc6b6857 Merge pull request #481 from starkos/update-codelite
Update to latest version of the CodeLite module
2016-04-22 09:27:17 +10:00