Commit Graph

6583 Commits

Author SHA1 Message Date
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 39c01f6da7
Update the Swift tests for Swift Package Manager 4.0.
SwiftPM has changed its default layout for new packages (i.e. when we
use "swift package init --type executable" during the test).  It now is
<projectName>/Sources/<projectName>/main.swift, so we need to adjust the
paths appropriately.

This includes a small change to print stdout as well as stderr if a
unit test fails to build.  swift-build-tool takes the compiler subprocess's
stderr and puts it on stdout.  *sheesh*  This meant that we were losing
critical error messages.
2017-10-20 10:12:47 -07:00
Ewan Mellor 7aa6b544d9
Redo Package.swift for Swift Package Manager 4.0. 2017-10-20 10:12:47 -07:00
Ewan Mellor 8a292c0f4f
Migrate the Swift runtime to Swift 4.
Remove a number of generic type constraints, since these can now
be inferred by the compiler.

Match the syntax change when passing a tuple into a function (adding
an extra set of parens).

Change filterPrecedencePredicates to avoid a now-illegal cast.

Match the renames truncatingBitPattern -> truncatingIfNeeded,
multiplyWithOverflow -> multipliedReportingOverflow, etc.  In
some cases the multiplyWithOverflow calls are replaced by
overflowing operators (e.g. &*) instead.
2017-10-20 10:12:46 -07:00
Ewan Mellor 365d4f40bb
Refactor to avoid forced casts. 2017-10-20 10:12:46 -07:00
Ewan Mellor 4bafc74e6c
Remove unused functions from StringExtension.
Some of these are subject to change for Swift 4, but since they are unused
we should remove them anyway.
2017-10-20 10:12:46 -07:00
Ewan Mellor 8ba2c0ba4f
Add entries to .gitignore for the files that are generated by
Swift Package Manager.
2017-10-20 10:12:46 -07:00
Ewan Mellor 4d628174df
Update Swift runtime documentation.
We now use boot.py and Swift Package Manager to generate the .xcodeproj
rather than having those committed in the source repo.
2017-10-20 10:12:44 -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 8778ad65c4 Merge pull request #2047 from bramp/commonsetstuff
[Go] Placed the CommonSetStuff code inside a scope
2017-10-12 09:42:32 -07:00
Terence Parr 28a81b8568 Merge pull request #2038 from ericvergnaud/fix-unicode-2031
fix #2031
2017-10-12 09:40:34 -07:00
Terence Parr e35988ddc8 Merge branch 'master' into fix-unicode-2031 2017-10-12 09:39:56 -07:00
Terence Parr 7d2a0978b5 Merge branch 'master' into fix-unicode-2031 2017-10-12 09:38:16 -07:00
Terence Parr afeb2e9b88 Merge pull request #2034 from ewanmellor/jdk7
Replace oraclejdk7 with openjdk7 in .travis.yml.
2017-10-10 12:57:56 -07:00
Terence Parr c4cbcb5b58 Merge pull request #2007 from brauliobz/fragment_only_grammar
Fix codegen error (Java) when a lexer has only fragment tokens
2017-10-10 12:55:07 -07:00
Terence Parr 2b529d8529 Merge branch 'master' into fragment_only_grammar 2017-10-10 12:55:01 -07:00
Terence Parr c861e09d39 Merge pull request #1977 from nielsbasjes/EmptyGetText
Fixed empty CodePointCharStream throwing exception on getText.
2017-10-10 12:47:00 -07:00
Terence Parr 2905b8cdda Merge pull request #2045 from bramp/patch-1
bramp signed the contributors.txt
2017-10-10 12:43:49 -07:00
Terence Parr 6911cb45b5 Merge branch 'master' into patch-1 2017-10-10 12:43:40 -07:00
Terence Parr 2fabbdb589 Merge pull request #2010 from sachinjain024/patch-2
Adding mention to contributor.txt
2017-10-10 12:43:09 -07:00
Terence Parr ed5f07575d Merge branch 'master' into patch-2 2017-10-10 12:43:04 -07:00
Terence Parr 7688518116 Merge pull request #1989 from tiagomazzutti/patch-1
Update contributors.txt
2017-10-10 12:42:36 -07:00
Terence Parr 526b3f95d8 Merge branch 'master' into patch-1 2017-10-10 12:42:27 -07:00
Terence Parr 2938e7a3ab Merge pull request #1870 from KvanTTT/master
All error codes distinct
2017-10-10 12:41:50 -07:00
Terence Parr cb558ccb48 Merge pull request #1954 from kosak/no-attribute-on-enum-class
Remove the useless visibility attribute from this "enum class" declaration
2017-10-10 12:40:31 -07:00
Terence Parr c329e38775 Merge pull request #1932 from jBugman/master
Go file header complies with standardised Go 'generated code' header
2017-10-10 12:39:24 -07:00
Terence Parr f6b3571e97 Merge branch 'master' into master 2017-10-10 12:39:18 -07:00
Terence Parr 8b6f297578 Merge pull request #1973 from matthauck/ignore-cmake-policy-0054
Ignore cmake policy 0054
2017-10-10 12:36:10 -07:00
Terence Parr a308cd5d8d Merge branch 'master' into ignore-cmake-policy-0054 2017-10-10 12:36:01 -07:00
Terence Parr e78b0df51a Merge pull request #2035 from ewanmellor/fix-mvn-plugin-versions
Add some version numbers to pom.xml.
2017-10-10 12:34:46 -07:00
Terence Parr f1838a0553 Merge pull request #1984 from sharwell/set-tab-width
Set the tab width in .editorconfig so GitHub shows source properly
2017-10-10 12:34:10 -07:00
Terence Parr 51c743c80e Merge pull request #2017 from moon-fall/master
correct the version of the antlr jar package
2017-10-10 12:33:07 -07:00
Terence Parr 200b0fa806 Merge pull request #2009 from sachinjain024/patch-1
Minor formatting
2017-10-10 12:30:03 -07:00
Andrew Brampton 9f90d51442
Placed the CommonSetStuff code inside a scope, this is to avoid two _lt variables in the same scope. This happens with the mysql grammar: `build: previous declaration at mysql/mysql_parser.go:12215:6` 2017-10-06 08:06:56 -07:00
Andrew Brampton 7d6189beea bramp signed the contributors.txt 2017-10-06 07:40:35 -07:00
Eric Vergnaud 6d337f9cce seems jdk7 is no longer supported 2017-09-30 17:20:35 +08:00
Eric Vergnaud 44031b544d fix #2031 2017-09-30 17:07:40 +08:00
Ewan Mellor 99d32dc861
Add some version numbers to pom.xml.
This silences warnings from Maven.
2017-09-28 16:10:26 -07: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
fallnirvana 41cd0309a7 correct the version of the antlr jar package
version of the antlr jar package is different from other place of this doc,and it make mistake.
2017-09-19 23:19:39 +08:00
Terence Parr e6d60007e7 Merge pull request #1956 from renatahodovan/syntax-errors
Python: add public getter to parsers to access syntax error count.
2017-09-17 11:20:56 -07:00
Terence Parr 106c413e96 Merge pull request #1958 from linux-on-ibm-z/master
fix to the ATN deserialiser issue on big endian architecture
2017-09-17 11:20:16 -07:00
Terence Parr f86835928f Merge branch 'master' into master 2017-09-17 11:20:10 -07:00
Terence Parr f8b272a721 Merge pull request #1950 from ericvergnaud/fix-naming-issue
fix inconsistent naming in target stg
2017-09-17 11:18:44 -07:00
Terence Parr a7b0afbd2f Merge pull request #1966 from venkatperi/master
Require superClass for Lexer in split mode for JavaScript target
2017-09-17 11:17:53 -07:00
Terence Parr 8f50bd0df6 Merge branch 'master' into master 2017-09-17 11:17:14 -07:00
Terence Parr 4fc18d91c8 Merge pull request #2013 from rljacobson/master
Import RuleContext into the antlr4 module namespace. See Issue #2012.
2017-09-17 09:01:53 -07:00