126 Commits

Author SHA1 Message Date
Ronald Wampler
9337b12616 Pass our minimum deployment target to ibtool
This suppresses the below warning when compiling xibs with Xcode 7 or later.

    warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9]

We should revisit this when we update our minimum deployment target to 10.8 or higher, as it may not be needed.
2016-06-21 06:19:04 +02:00
Allan Odgaard
863ed2a691 When running tests synchronously failures would be ignored 2016-06-21 06:19:04 +02:00
Martin Kühl
597a49015d Run tests synchronously by default
Running tests in parallel (which is the default)
results in spurious failures in the `scm` git tests,
probably due to an undiagnosed race condition.

This change lets tests run serially by default,
but provides a flag `-p` (or `--parallel`)
which enables running them in parallel again.

It also adds a variable `test_flags`
which is passed to each test run,
and which can be set by running

    env test="-v" ./configure
2016-01-15 12:07:16 +01:00
Martin Kühl
bbced5c3f3 Protect gen_credits against invalid responses
The `gen_credits` scripts can spuriously fail
raising this error in the `user_by_email` method

    NoMethodError: undefined method `[]' for nil:NilClass

when `YAML.load(response.body)` returns nil.

This change protects the build against these failures
by returning nil early.
2016-01-15 12:07:16 +01:00
Allan Odgaard
720f9eac98 Expect more than just {?name} in GitHub’s URI template
Currently GitHub supports both name and label parameters.
2015-10-03 17:33:21 +07:00
Allan Odgaard
f8c823195f Update script to create release notes
We now place the GitHub version comparison link in the list of changes rather than in the heading.
2015-01-19 12:29:33 +07:00
Allan Odgaard
23386c1138 Enable session restore (if disabled) when relaunching after build 2014-11-30 09:12:08 +07:00
Allan Odgaard
fe798f4c0e Don’t explicitly define targets as applications or libraries
Libraries can be identified by either being linked with other targets, or exporting headers, so that is what we do.
2014-11-20 14:58:34 +01:00
Allan Odgaard
83d859ff52 Remove support for our special “EXPORTS” symbol
This allowed framework headers to test whether they were build as part of the framework itself, or part of building something that depends on the framework.

Ideally though we should not need two different paths for those two cases, and we no longer have.
2014-11-17 15:17:28 +01:00
Allan Odgaard
f16e83fb4f Get rid of APP_REVISION
This was just mirroring the last part of our version number so redundant and it wasn’t monotonically increasing as we switched from alpha.n → beta.1 (with n > 1), so it probably did more harm than good.
2014-10-30 20:49:10 +01:00
Allan Odgaard
aa96f1f342 Account for tar potentially failing 2014-10-03 21:49:13 +02:00
Allan Odgaard
e92759af78 Ensure we create signature before uploading file
This is so that we do not upload anything if signature creation fails.
2014-10-03 21:49:13 +02:00
Allan Odgaard
e13ec4dc18 Call developer shell tools via xcrun instead of using $xcodedir 2014-09-05 14:31:05 +02:00
Allan Odgaard
de60f228ac Do not assume CC/CXX is a single executable
The downside is that we no longer have our .o files depend on the compiler (so we need to do a clean build after upgrading the compiler) and if there is a space in the path to the compiler, it will fail.

The upside is that we can let CC/CXX be a command with arguments, e.g. ‘xcrun clang’.
2014-09-05 14:05:17 +02:00
Joachim Mårtensson
2df7620b8d Add Ruby 2.0 support for build scripts 2014-08-03 09:05:33 +02:00
Allan Odgaard
d422a21006 Do proper string conversion of non-string values
Only values from the root target goes through this code, so it wasn’t causing a problem, as none of those keys had a multi-element array, but in ruby 2.0 embedding an array in a string seems to use inspect instead of to_s:

	Ruby 1.8: "#{['foo']}" #=> foo
	Ruby 2.0: "#{['foo']}" #=> ["foo"]
2014-08-03 09:05:09 +02:00
Allan Odgaard
dfe38c3708 Set required version of ninja to 1.5 2014-07-24 08:18:50 +02:00
Brad Choate
6172d9ae8f Adding some 2012 committers. 2014-07-22 13:10:46 -07:00
Brad Choate
e94408b0c4 Support a "--warn" switch for gen_html.
Default is to suppress any warnings for unassociated GitHub profiles.
2014-07-22 12:13:35 -07:00
Allan Odgaard
f2387d8d23 Workaround for ruby 2.0 warning (shadowing outer local variable) 2014-07-06 22:42:00 +02:00
Allan Odgaard
1c742b0559 The cap’n proto rule should not be a generator rule
Also change 1 → true for another use of generator (for consistency).
2014-07-05 21:33:29 +02:00
Boris Dušek
320c3ec23a Add contributor emails
In other words, I don't like build warnings of any kind :-)
And they deserve credit for their contributions.
2014-06-29 18:21:50 +02:00
Allan Odgaard
2427464f60 Disable tar’s support for extended attributes and resource forks
A problem has been reported where tar will freeze while extracting the default bundles archive to a networked Application Support folder.

From the bug report (Michael Kuron):

File servers tested: SMB on OS X 10.9.3, AFP on OS X 10.9.3, AFP on OS X 10.6.8, SMB on Windows 2008 R2.

Multiple machines tested.

Using ‘gnutar’ from MacPorts does not show the problem.

Setting ‘COPYFILE_DISABLE=1’ before running tar does not show the problem (the workaround used in this commit).
2014-06-28 17:42:23 +02:00
Allan Odgaard
9f10bd56c7 Set ‘depfile = $out.d’ (may require ninja 1.5 for proper escapes) 2014-06-28 17:42:23 +02:00
Allan Odgaard
cb775822aa Use current ruby (rather than 1.8) for a few helper scripts 2014-06-28 17:42:23 +02:00
Allan Odgaard
42ff7850f3 Switch from gdb → lldb and run in current terminal (ninja 1.5) 2014-04-18 06:40:48 +07:00
Allan Odgaard
2134e957e6 Display progress during upload (ninja 1.5) 2014-04-18 06:40:48 +07:00
Allan Odgaard
e6d8ffed43 Create archive of default bundles by using the server side status 2014-04-14 08:55:06 +07:00
Allan Odgaard
75dc734a87 When tar fails, it does not remove the output file 2014-04-06 19:36:08 +07:00
Boris Dušek
c3088da9a5 Add my work email as contributor address 2014-04-01 14:03:29 +07:00
Allan Odgaard
3bc0c65c7a Introduce variable for where cap’n’proto is installed
Set the `capnp_prefix` variable when calling ./configure.

E.g. build and install cap’n’proto in $HOME/build:

    ./configure --disable-shared --prefix="$HOME/build"
    make -j6 check && make install

Then configure TextMate to find it there:

    capnp_prefix="$HOME/build" ./configure
2014-03-30 11:18:41 +07:00
Allan Odgaard
3aa383a166 GitHub releases API is no longer in preview 2014-02-14 13:35:54 +07:00
Allan Odgaard
d52eda852e Disable timestamp server for code signing
This slows down signing enormously (10+ seconds) and fails most of the time when internet connectivity is suboptimal (might be related to being behind a proxy).
2014-02-10 13:51:04 +07:00
Allan Odgaard
8ff36f3402 Revert "Use custom script to simulate “codesign --deep”"
This reverts commit 434917b1e9.
2014-02-10 13:48:58 +07:00
Allan Odgaard
885325e992 Use netrc for GitHub credentials
This changes the authentication mechanism from passing an authorization token / API key to using basic auth. Basic auth didn’t work when I initially tested the upload API, but hopefully GitHub has since added it (I did request it, but didn’t get a reply, so no idea if the omission was an oversight or by design).
2013-12-13 18:39:24 +07:00
Allan Odgaard
1293828e79 Upload to existing release if it already exists
Creating a release with attachment is non-atomic in that the release is first created and then we upload to that release but our build file has it as a single action, so this action should be able to handle partial success from a previous execution.
2013-12-12 14:11:26 +07:00
Allan Odgaard
72adfe9115 Change ruby syntax: [ foo ].shelljoin → foo.shellescape 2013-12-05 12:14:13 +07:00
Allan Odgaard
f880f3df63 Add credits email hash for rdwampler 2013-12-01 14:59:09 +07:00
Allan Odgaard
9a017f97ff Use GitHub’s (preliminary) API for uploading releases 2013-12-01 14:56:48 +07:00
Allan Odgaard
bc7cbffb0c Add -t/--tag option to bin/upload
Presently unused but mandatory.
2013-12-01 14:49:25 +07:00
Allan Odgaard
d2935f976b Add upload (ninja) target 2013-12-01 14:48:27 +07:00
Allan Odgaard
f80794e3b0 Update shebang to explicitly call ruby 1.8 2013-12-01 14:46:43 +07:00
Allan Odgaard
434917b1e9 Use custom script to simulate “codesign --deep”
The problem is that with a bad internet connection there is a very high probability that “codesign --deep” will fail due to having to contact the timestamp server for each embedded executable object.

Long-term we probably want to sign the sub-targets as they are produced and/or link the entire thing together so that there is only a single sign target (plus embedded plug-ins).
2013-12-01 14:35:09 +07:00
Allan Odgaard
f88c028d97 Only show one warning per missing user when generating credits 2013-11-03 20:37:47 +01:00
Allan Odgaard
78b110dc0e Use /usr/bin/tar instead of gnutar (which is removed on 10.9)
We were using gnutar to avoid the extended header keywords that bsdtar add to the archive (for non-ASCII file names) as those will cause older versions of gnutar (like the one included with 10.8 and earlier) to give warnings/errors when extracting the archive.

Issue #1180
2013-11-03 20:37:47 +01:00
Allan Odgaard
a9a1c38006 Sign embedded bundles
This is required when signing on OS X 10.9.

Although the option is not documented for the version of codesign included with 10.8, using it does not result in an error.

Closes #1158
2013-10-27 11:37:27 +01:00
Allan Odgaard
c5ecf8f6c6 Handle *.c++ files in gen_build
We already handle these when mapping extension to file type.
2013-08-24 01:19:29 +02:00
Allan Odgaard
8a2ad5ed20 Add support for capnp files (build system) 2013-08-16 22:40:09 +02:00
Allan Odgaard
09511a9092 Introduce single function for mapping extension to language 2013-08-16 22:40:09 +02:00
Allan Odgaard
2c55141e47 Support setup functions for tests
Previously this had to be done via global constructor functions but it would seem the execution of these may happen before initialization of global data.
2013-08-16 22:40:08 +02:00