Commit Graph

106 Commits

Author SHA1 Message Date
parrt fa499e4215 update travis to python 3.7 2020-01-18 11:09:23 -08:00
Ewan Mellor 509eeefa4a
[Swift] Migrate Swift runtime to Swift 5.
This switches from using the deprecated hashValue to hash(into:).
It also switches from using index to firstIndex (matching the change in
the standard library).

In the test template, we switch to using String directly instead of
String.characters.

This also switches all the Travis macOS tests to use the Xcode 10.2 / Mojave
image and changes the Linux Swift tests to download Swift 5.0.1.
2019-11-18 13:24:28 -08:00
Marcos Passos 789d746636 PHP Target 2019-09-14 09:39:58 -03:00
Eric Vergnaud 71a6922776 jdk7 builds on trusty, move it back to extended tests 2019-07-14 15:11:36 +08:00
Eric Vergnaud 21069fb2c6 try using trusty for jdk7 2019-07-14 15:05:21 +08:00
Eric Vergnaud 9830f156d7 replace hidden tab in travis yml 2019-07-14 13:05:14 +08:00
Eric Vergnaud 69cc73d345 use trusty for cpp 2019-07-14 12:52:35 +08:00
Eric Vergnaud 264495b404 Revert "restore dotnet as part of main test"
This reverts commit 11a70d56cf.
2019-07-14 11:17:57 +08:00
Eric Vergnaud 11a70d56cf restore dotnet as part of main test 2019-07-14 11:17:23 +08:00
Eric Vergnaud 9b32885e21 only use openjdk7 for java extended test, use openjdk8 for all others 2019-07-14 11:05:46 +08:00
Eric Vergnaud eac9b0b0ef drop EOL's oraclejdk8 in favor of openjdk8 2019-07-14 10:57:03 +08:00
Ewan Mellor c2d69af6db
Write any dumpstream files into the Travis logs.
This means that we will see the errors if Surefire is bailing for any
reason.
2018-11-15 15:33:10 -08:00
Ewan Mellor 23bc423259
Move Travis tests to Swift 4.2 and Xcode 10.1.
Move Travis Swift, .NET, and C++ macOS tests from Xcode 9 to Xcode 10.1.
Move Travis Linux Swift tests from Trusty to Xenial and to Swift 4.2.1.

Remove the dirname call when setting JAVA_HOME, it seems to be incorrect.
Print the JAVA_HOME that Travis ends up with.

Moving to Xcode 10.1 / Swift 4.2 exposes the issue discussed in #2372
so this cset will fail automated tests without the relevant fixes.
2018-11-15 11:25:37 -08:00
parrt 1eca79ec3a update python from 3.5 to 3.6 2018-11-07 12:39:30 -08:00
Eric Vergnaud b594b24b15 csharp target builds faster so use it for main test 2018-01-01 14:43:29 +08:00
Eric Vergnaud bfd5e5d818 more python 2 to main test stage since it’s a standalone target 2018-01-01 14:33:38 +08:00
Terence Parr 5809f71d0e
Merge pull request #2091 from ewanmellor/travis-cache-dotnet-osx
Add Travis-side caching of the dotnet package that we download from Microsoft
2017-11-04 10:50:00 -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 6b504fee43
Remove ~/.m2/repository/org/antlr from the Travis cache.
Caching ~/.m2 is useful; caching org/antlr inside there is not.  It causes
unnecessary re-submission of the cache every build.
2017-10-28 14:26:34 -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
Ewan Mellor 7df0c2f478
Split the C++ tests into three groups.
Running these as a single test still intermittently times out after 40
minutes, even with the other recent csets.
2017-10-20 00:30:53 -07:00
Ewan Mellor 5f28a5b313
Split Travis tests into three phases.
This gives a "smoke-test" phase which just runs the Java tests, to get a
quick check that compilation is working.  It is followed by the
"main-test" phase that tests each target on their preferred platform
(e.g. Swift on macOS, Python on Linux) followed by "test-extended"
which runs all the remaining tests (all the other Java variants, and
any other platforms supported by each target).

This means that those tests in the later phases won't run unless the
earlier phases have passed.  This should vastly improve our Travis
turnaround.

This changeset also changes the matrix so that we get some coverage across
all of openjdk7,8 and oraclejdk7,8 and moves the Go and Javascript tests
to Trusty just so that they are more up-to-date.  This adds one additional
Java test run, so now we compare oraclejdk8 and openjdk8 in case of
problems in that regard.

Note that the test matrix has not been extended to cover oraclejdk9.  This
currently fails for us with a build issue, so it is not included in this
changeset.

This changeset also removes the meaningless custom apt configuration in the
section for macOS .NET tests.
2017-10-13 20:14:10 -07:00
Ewan Mellor 7bd52e5518
Wrap the run-tests-$TARGET.sh with a travis_wait call.
This means that it will write a line to the log each minute while the
tests are running, up to the specified timeout.  This works around the
fact that one of Maven / Surefire / JUnit are buffering our test output
until a whole test class has run.

This is a problem in particular with the TestLeftRecursion tests because
they are taking over 9 minutes on their own.  After 10 minutes of silence
Travis assumes that a job is broken and kills it.  We've been hitting
that timeout regularly.
2017-10-13 20:14:08 -07:00
Ewan Mellor 242dbe095d
Add cache entries to .travis.yml.
This is recommended by the Travis docs to speed up the parts of the
tests where unpack / install has a significant cost, as opposed to the
download.

This changeset adds entries for ~/.m2 (for Maven) and
~/Library/Caches/Homebrew for (brew on macOS).
2017-10-13 20:13:24 -07:00
Terence Parr 7d2a0978b5 Merge branch 'master' into fix-unicode-2031 2017-10-12 09:38:16 -07:00
Eric Vergnaud 6d337f9cce seems jdk7 is no longer supported 2017-09-30 17:20:35 +08:00
Ewan Mellor d95fb2ec46
Replace oraclejdk7 with openjdk7 in .travis.yml.
Oracle JDK 7 support has been withdrawn.

https://github.com/travis-ci/travis-ci/issues/7964
http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
2017-09-28 15:48:25 -07:00
Eric Vergnaud c15aa4336a dotent also times out 2017-06-28 22:18:19 +08:00
Eric Vergnaud 936a396c81 clarify intent 2017-06-28 20:45:39 +08:00
Eric Vergnaud c5eb9cbeef Merge branch 'master' into fix-travis-timeouts 2017-06-28 20:41:32 +08:00
Eric Vergnaud b7538b6eb9 fix failing build 2017-06-27 23:09:36 +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 10a3ee3f49 adding travis configuration for swift under linux 2017-06-03 22:57:21 -07:00
Dong Xie da4987dc38 [dotnet] update to .netcore v1.0.1; add osx build 2017-04-04 15:26:40 +01:00
parrt e968fe271a Revert "clean up per travis weblint"
This reverts commit 49de9e8f95.
2017-02-20 11:59:22 -08:00
parrt 49de9e8f95 clean up per travis weblint 2017-02-20 11:27:37 -08:00
parrt 0c45ada655 fix formatting 2017-02-20 10:42:02 -08:00
parrt 7a0f4e716a try generic python 3.5 2017-02-20 10:36:36 -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
parrt 30c7c43712 add tool tests but only when testing java target 2016-11-27 13:35:35 -08:00
Eric Vergnaud bd7df071f9 start with the slow builds 2016-11-28 03:04:30 +08:00
Eric Vergnaud 069cf9354d divide and conquer 2016-11-28 02:50:30 +08:00
Eric Vergnaud 33401add2c divide and conquer 2016-11-28 02:47:48 +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