Commit Graph

42 Commits

Author SHA1 Message Date
Terence Parr 84e9a46932
Merge pull request #2107 from ewanmellor/swift-fix-deprecated-string-methods
Remove use of deprecated String functions
2017-11-29 09:52:27 -08:00
Ewan Mellor 84eca87da2
[CSharp] Switch Travis / macOS to .NET Core 1.1.4.
Switch to .NET Core SDK 1.1.4 for the Travis macOS tests.  This is
the LTS release at the moment.

Issue #2078 is starting to look like a crash (SIGILL) inside the dotnet
runtime, so this upgrade may help with that.
2017-11-14 01:47:33 -08:00
Ewan Mellor ba392be1af
Remove use of deprecated String functions in StringExtension.
Remove some functions that are no longer used, and update the
rest to Swift 4's String API.  lastIndexOf changes to lastIndex(of: ),
matching the standard library naming conventions, and returns a
String.Index? instead of an Int.

Add an implementation of Substring.hasPrefix for Linux; this
is in the Apple standard library but not the Linux one.
https://bugs.swift.org/browse/SR-5627

Add unit tests for StringExtension.

Bump the Swift download for the Travis Linux tests from 4.0
to 4.0.2.  There is a bug in Substring.range(of:) in 4.0.0
(https://bugs.swift.org/browse/SR-5663) that we need to avoid.
2017-11-07 17:06:15 -08:00
Ewan Mellor 376f7384c3
Run the Swift runtime unit tests during the Travis run.
These are the unit tests that are written in Swift, not the more
in-depth runtime-testsuite tests (we were always running those).

I don't know why JAVA_HOME isn't set during run-tests-swift.sh, but it
isn't.  Set it, since runtime/Swift/boot.py expects it as part of the
parser generation.
2017-11-04 11:41:20 -07:00
Ewan Mellor 026c6736dc
Add Travis-side caching of the dotnet package that we download from Microsoft.
This avoids hitting the Microsoft server every time.  The download isn't
super-reliable, so this should help with build reliability.

This extends the cache timeout, because the package is large and the
upload was timing out.
2017-10-28 14:32:33 -07:00
Ewan Mellor 897b4339a3
Switch the Linux Swift tests to Trusty and Swift 4.0.
This uses Travis's new(ish) Ubuntu Trusty image, and changes the
version number of the Swift binaries that we download.

We now install clang-3.6.  This is not the default on Trusty, but
it's required by the Swift 4.0 toolchain.

This also removes the lines to upgrade libicu-dev and sqlite3.  These
are sufficiently up-to-date in the Trusty image.
2017-10-20 10:12:47 -07:00
Ewan Mellor cfb0041328
Switch all the macOS Travis jobs to use the Xcode 9 image.
We require Xcode 9 for the Swift target, and the C++ and .NET tests
shouldn't care either way.

We no longer need to install cmake: this is already in the Travis
Xcode 9.0 image (and it barfs if we try to install it again).

We no longer need the rvm bug workarounds; a newer version of rvm is
in the Xcode 9.0 image so this is no longer a problem.

The openssl package is already installed and up-to-date now, so there is
no need to install that.

These changes mean that we don't need before-install-osx-cpp.sh
or before-install-os-swift.sh at all, and before-install-osx-dotnet.sh
gets a bit shorter.  .travis.yml gets a small change to handle the
fact that some platform / target combos don't need before-install any more.
2017-10-20 10:12:47 -07:00
Eric Vergnaud c15aa4336a dotent also times out 2017-06-28 22:18:19 +08:00
Eric Vergnaud c5eb9cbeef Merge branch 'master' into fix-travis-timeouts 2017-06-28 20:41:32 +08:00
Eric Vergnaud 03e9a012bc fix failing build 2017-06-28 20:40:16 +08:00
Eric Vergnaud 32fc500102 Fix typo and rebalance 2017-06-27 07:43:59 +08:00
Eric Vergnaud 5faa889c8a categorise tests to fix Travis timeout, fix script 2017-06-27 01:47:01 +08:00
Eric Vergnaud 0e573fb0a5 categorise tests to fix Travis timeout 2017-06-27 00:50:49 +08:00
Dong Xie ceaf085dc5 [dotnet] for linux target, bring up to jdk8 since jdk7 no longer available for Trusty; for linux and osx targets, bring up dotnet from 1.0.3 to 1.0.4; Trusty image now has mvn 3.3.9 builtin, removed install code 2017-06-26 13:18:48 +01:00
Hanzhou Shi 77eddc8e76 fix linker issue on travis ubuntu 2017-06-03 22:57:21 -07:00
Hanzhou Shi e8962dad7e reads SWIFT_HOME from environment variables. 2017-06-03 22:57:21 -07:00
Hanzhou Shi 10a3ee3f49 adding travis configuration for swift under linux 2017-06-03 22:57:21 -07:00
Dong Xie e94b3acaed [dotnet] fix again for the test speed up 2017-04-28 16:18:36 +01:00
Dong Xie 5fffe4bb2e [dotnet] try to get test run faster; update from 1.0.1 to 1.0.3; fix test dir removal not recursive 2017-04-27 17:23:48 +01:00
Dong Xie da4987dc38 [dotnet] update to .netcore v1.0.1; add osx build 2017-04-04 15:26:40 +01:00
Dong Xie e49b0977f5 fix #1725; get dotnet target test run 2017-03-04 01:42:44 +00:00
parrt 58249f4a32 indicate where mono is under linux:dotnet 2017-03-03 10:27:42 -08:00
parrt f18ce14afe indicate where mono is under linux:dotnet 2017-03-03 10:20:33 -08:00
parrt 7a0f4e716a try generic python 3.5 2017-02-20 10:36:36 -08:00
parrt 44942bc5fc Merge branch 'master' into lecode-official-master 2017-02-19 14:08:26 -08:00
ericvergnaud 9cc527b925 force-rebuild 2017-02-19 13:19:56 +08:00
Eric Vergnaud 414533e6ac print node version 2017-02-19 12:32:10 +08:00
Eric Vergnaud 5827c15183 try different nodejs install method 2017-02-19 12:20:43 +08:00
Eric Vergnaud b0f067e522 rwky ppa no longer available, trying chris-lea 2017-02-19 12:14:02 +08:00
Eric Vergnaud 9e67038855 remove unnecessary calls 2017-02-19 11:38:02 +08:00
Dong Xie d3dd87db3e [dotnet] target: fix travis.yaml once again 2017-02-07 15:49:23 +00:00
Dong Xie 09d45f5d6e [csharp] update travis for dotnet 2017-01-25 00:24:36 +00:00
parrt 643dc2a005 move to script file 2016-11-27 14:06:19 -08:00
Eric Vergnaud 0cf3c2cf50 divide and conquer 2016-11-28 02:44:07 +08:00
Eric Vergnaud c3f9cb3cc7 divide and conquer 2016-11-28 02:22:18 +08:00
Eric Vergnaud bebdeedada divide and conquer 2016-11-28 01:36:46 +08:00
Eric Vergnaud ab3bba906d divide and conquer 2016-11-28 01:07:30 +08:00
Eric Vergnaud 4f48d533fa divide and conquer 2016-11-28 00:56:14 +08:00
parrt 2211036472 Test only swift on os x 2016-11-22 12:55:47 -08:00
parrt 93c04a1933 fix travis 2016-11-22 10:55:19 -08:00
parrt 27a59988a2 take out flag for cmake as it doesn't work on linux. turn off C++ tests on mac 2016-11-20 20:28:12 -08:00
parrt 66be087c38 merge old and new travis; improve so it runs C++ on osx; update BaseSwiftTest so it mirrors other targets; remove unneeded dep in pom to some json stuff 2016-11-20 19:50:54 -08:00