Commit Graph

348 Commits

Author SHA1 Message Date
Mishal Shah
882d9ef77b Update master-rebranch config for swift-integration-tests repo 2019-09-30 10:47:57 -07:00
Saleem Abdulrasool
039f67be14 utils: bump to CMake 3.15.1
CMake 3.15.3 is the current stable release.  Update to 3.15.1 as CMake usually
has bug fixes in the first release.
2019-09-17 11:40:38 -07:00
Mishal Shah
7aad090925 Update the LLVM Project repo to v2 2019-08-29 16:56:51 -07:00
Jonas Devlieghere
d13842b28f Update LLDB branch for master-rebranch 2019-08-19 16:55:28 -07:00
mishal_shah
8a9af4905f [Update Checkout] Update the branch name to master-rebranch 2019-08-07 14:58:28 -07:00
Mishal Shah
f482f648c4 [update-checkout] Add support for apple/stable/20190619 branch 2019-08-06 21:12:31 -07:00
Saleem Abdulrasool
c072c18d6c Merge pull request #26301 from compnerd/checkout-cmake
utils: add CMake to Linux checkout
2019-07-29 14:00:38 -07:00
Saleem Abdulrasool
484a46e369 utils: add CMake to Linux checkout
In order to prepare for a migration to CMake 3.15 to enable the use of
the new Swift support, we will add a build of CMake for Linux to ease
the transition.  This adds CMake to the checkout on Linux.
2019-07-23 10:58:01 -07:00
Mishal Shah
c08b62a816 [Update Check] Add support for swift-format 2019-07-22 14:43:32 -07:00
mishal_shah
1b4b7f9e17 [update-checkout] Add support for LLVM-Project mono repo by creating symlink 2019-07-16 22:32:09 -07:00
Michael Gottesman
22148e3a9a [update-checkout] Fix --dump-hashes for my changes around adding support for specifying the source root from update-checkout itself.
With a test to make sure I don't break it again!
2019-06-25 21:33:05 -07:00
Michael Gottesman
a9d384dac3 [update-checkout] Add a simple mock update-checkout test that makes sure that we can clone.
This commit is not meant to completely test update-checkout, but rather create
some scaffolding for testing update-checkout so we can create starter bugs to
fill out the rest of the functionality. Once we have enough testing in place, we
can start refactoring/simplifying update-checkout.

Design
------

This is just a standard python unittest test suite except that the tests expect
an environment variable (UPDATECHECKOUT_TEST_WORKSPACE_DIR) to be set that
specifies the directory that the unittests have for creating mock git repos
during setup/teardown. lit invokes the test by calling the unittests with the
environment variable set to the appropriate temporary directory.

In this temporary directory, each test creates a pristine set of "fake" remote
repos and a test-config.json file that can be passed to update-checkout to work
with these "fake" remote repos. This allows each test that we write to test
various update-checkout functionalities against a pristime set of git repos. I
choose the git clone test, just b/c it was really simple.

NOTE: One can also run the tests locally using the script
test_update_checkout.sh that uses /tmp/workspace as the workspace directory.
2019-06-21 18:25:08 -07:00
Michael Gottesman
e8ad3201f6 [update-checkout] Allow the source root to be passed in instead of hard coding to SWIFT_SOURCE_ROOT.
This enables mocking testing to work (otherwise we would create repos in
SWIFT_SOURCE_ROOT). SWIFT_SOURCE_ROOT is the default value so nothing changes
unless one specifies the argument explicitly.
2019-06-21 18:13:40 -07:00
mishal_shah
5832743c5c [Update Checkout] Print sorted repo list 2019-06-21 16:04:44 -07:00
mishal_shah
f5963923de [Update Checkout] Print hashes at the end of the successful clone/update.
- Support dump-hashes with skipped repos
- Remove duplicated code from dump hashes
2019-06-21 11:53:59 -07:00
Mishal Shah
27712eb857 Update update-checkout config to support swift-5.1-branch-06-12-2019 2019-06-12 22:22:47 -07:00
Michael Gottesman
26918a816e [update-checkout] Update stdlib_standalone preset for the snapshot released last night. 2019-06-07 07:37:32 -07:00
Michael Gottesman
9e8c0d0abf Add a update-checkout scheme for people to test out stdlib_standalone. 2019-06-06 15:07:17 -07:00
Michael Gottesman
caa2286182 [stdlib_standalone] Add a update-checkout scheme for people to test out stdlib_standalone. 2019-06-06 08:23:50 -07:00
Mishal Shah
b8eca81462 Update the swift-5.1-branch-04-24-2019 scheme for swift-syntax 2019-05-21 17:52:14 -07:00
Daniel Rodríguez Troitiño
b3d6214b6c Merge pull request #23673 from drodriguez/update-checkout-env-windows
[update-checkout] Don't use env for portability.
2019-05-07 12:16:12 -07:00
Mishal Shah
3f897d6cdf Add support for swift-5.1-branch-04-24-2019 branch 2019-04-24 13:58:04 -07:00
Mishal Shah
38d9b0eb13 Update the swift-5.1-branch scheme to use swift-5.1-branch 2019-04-18 16:13:29 -07:00
Daniel Rodríguez Troitiño
8c721dee4c [update-checkout] Don't use env for portability.
env is not portable in systems that do not have env, like for example Windows. However, passing the environment is supported by shell.run using the env parameter, which should be portable.

For some reason shell.run doesn't merge the environment with the current environment by default, so we do it externally to not modify other possible usages of the function.
2019-03-29 16:29:00 -07:00
Mishal Shah
fbee701c89 [Update checkout] Add scheme for swift-5.1-branch-03-18-2019 2019-03-18 14:48:57 -07:00
Maxim Moiseev
8f1c70c7d7 Use env for portability 2019-02-14 14:40:26 -08:00
Maxim Moiseev
1294098d70 Don't prompt for credentials in update_checkout
The script is not supposed to be interactive, so it's OK to just fail if
it's unable to authenticate the user.
2019-02-14 13:01:48 -08:00
Mishal Shah
047e1e6e97 Update lldb to use swift-5.1-branch for 5.1 config 2019-02-13 11:38:42 -08:00
Bob Wilson
5ce1aa88dc [update-checkout] Add new branch configs for Swift 5.1
Add a tentative branch config for "swift-5.1-branch". Not all of the repos
are branched yet. I went ahead and added a reference to swift-5.1-branch for
the Swift repo, so that I can use this to start pulling together something
with cherry-picks from master-next. (The current master-next branch has
moved past the point where we branched the LLVM repos for swift-5.1-branch,
so we can't just grab a copy of master-next.) I also added a separate config
for "swift-5.1-old-llvm-branch", which will be used temporarily to track the
same Swift content as swift-5.1-branch but still building with the version
of LLVM in swift-5.0-branch.
2019-02-07 14:19:56 -08:00
Ben Langmuir
601783af74 [update-checkout] Add indexstore-db and sourcekit-lsp
All schemes currently use the master branch.
2019-01-09 15:31:17 -08:00
Mishal Shah
7df7359d8f [update-checkout] Add support to clone libcxx and clang-tools-extra for master, master-next and swift-5.0-branch scheme 2018-12-17 15:28:43 -08:00
Pavol Vaskovic
53cd115b0e [Gardening] Fix W291 trailing whitespace 2018-11-28 16:57:23 +01:00
Mishal Shah
bae265e308 Revert "Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester"" 2018-11-12 11:08:36 -08:00
Mishal Shah
e7d501c2bd Revert "[build-script] Update build-script to support building and installing the SourceKit stress tester" 2018-11-11 17:49:35 -08:00
Nathan Hawes
506307c626 [build-script] Update build-script with a new --skstresstester flag to support building and installing the SourceKit stress tester
This makes use of a helper script in the stress tester repo to do the actual
build and install: https://github.com/apple/swift-stress-tester/blob/master/SourceKitStressTester/Utilities/build-script-helper.py
2018-11-07 09:14:39 -08:00
Mishal Shah
ecebc6b206 Update swift-syntax branch to swift-5.0-branch 2018-11-05 17:57:47 -08:00
Mishal Shah
22368d52e9 Update branches in swift-5.0-branch scheme 2018-11-05 17:50:54 -08:00
Simon Evans
cb32792e76 update_checkout.py: Add support for tags and optional repositories.
- Update --reset-to-remote to support tags.

- Add optional platform entry to a repository. This allows specifying
  which platforms a repo should be checked out on.
2018-11-02 17:37:12 +00:00
Simon Evans
3b2ebeecf4 SR-8876: Always build libicu on Linux
- Uses version 61.1 from ICU Github unicode-org/icu repository.

- Updates mixin_linux_installation to add libicu option.

- Use -j when building libicu.

- When buiding ICU, use --with-library-suffix=swift
  This suffixes the ICU symbols with _swift.

  The libaries are now named libicuucswift, libicui18nswift
  and libicudataswift.

- Add the contents of uconfig.h.prepend into uconfig.h. This avoids
  passing the renaming CFLAGS to swift and swift-corelibs-foundation.

Also resolves:

SR-5618: libicu compilation should happen in parallel respecting -j.
2018-11-02 17:37:12 +00:00
Mishal Shah
8df2419476 Update swift 5.0 branches for Clang/LLVM/Compiler-rt 2018-10-15 14:42:56 -07:00
Alex Hoppen
8a6030b96b Add build-script infrastructure to build swiftSyntax in its own repository 2018-08-30 11:46:22 -07:00
Bob Wilson
e23c681142 Merge pull request #18582 from bob-wilson/cleanup-checkout-configs
[update-checkout] Remove some old configs that are no longer used.
2018-08-08 21:42:49 -07:00
Bob Wilson
312bdb2032 [update-checkout] Remove some old configs that are no longer used.
The checkout configs included some old dated branches that are no longer
used. They are unlikely to work well anyway because the corresponding
Clang/LLVM branches moved forward independently. Remove those config entries.
Also re-order the 4.0 and 4.1 configs to be consistent.
2018-08-08 17:01:29 -07:00
Bob Wilson
376a9bf5c3 Revert "Temporarily change to build master-next against swift-5.0-branch of LLVM"
This reverts commit 563292998b.
2018-08-06 22:28:50 -07:00
Mishal Shah
14dcf0a125 Update LLDB branch for swift-5.0-branch 2018-07-31 16:29:52 -07:00
Mishal Shah
6a0f578000 Update update-checkout config for swift-5.0-branch 2018-07-30 23:57:28 -07:00
Mishal Shah
1bf02e7749 Update swift-5.0-branch to match new qualification 2018-07-30 23:07:06 -07:00
Michael Gottesman
0b8381ae78 [update-checkout] Move all files except the top level entrypoints into ./utils/update_checkout/*.
This makes update_checkout into a true python module that we can add nosetests
for, readme, and also split up without issue into multiple small files.

I also added a small stub test directory and support for running tests for
update_checkout during validation-testing. So once we add some tests, everything
is setup correctly in terms of the swift build for testing purposes.
2018-07-26 10:07:18 -07:00