From d47db451808c6e7cf091cab64cc88effe30969a2 Mon Sep 17 00:00:00 2001 From: Larry Li Date: Wed, 19 Aug 2020 12:31:02 +1000 Subject: [PATCH] fix travis ci for pinned dart sdk version --- .travis.yml | 3 --- .travis/before-install-linux-dart.sh | 7 ++++--- doc/dart-target.md | 2 ++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index bf55d1827..85147d97b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -153,9 +153,6 @@ matrix: env: TARGET=csharp stage: main-test - os: linux - language: dart - dart: - - "2.8.4" jdk: openjdk8 env: TARGET=dart stage: main-test diff --git a/.travis/before-install-linux-dart.sh b/.travis/before-install-linux-dart.sh index a0611962f..c991d27e4 100755 --- a/.travis/before-install-linux-dart.sh +++ b/.travis/before-install-linux-dart.sh @@ -1,6 +1,7 @@ #!/bin/bash set -euo pipefail - -dart --version -command -v dart +wget https://storage.googleapis.com/dart-archive/channels/stable/release/2.8.4/linux_packages/dart_2.8.4-1_amd64.debhttps://storage.googleapis.com/dart-archive/channels/stable/release/2.8.4/linux_packages/dart_2.8.4-1_amd64.deb +sudo dpkg -i ./dart_2.8.4-1_amd64.deb +sudo rm ./dart_2.8.4-1_amd64.deb +sudo apt-get install -f diff --git a/doc/dart-target.md b/doc/dart-target.md index 2b85e81f6..eb4da0f72 100644 --- a/doc/dart-target.md +++ b/doc/dart-target.md @@ -1,5 +1,7 @@ # ANTLR4 Runtime for Dart +Notice: Dart target may generate code incompatible with Dart 2.9 sound null safety. Please set the minimum SDK constraint to 2.8.4 or lower if such violation is found. Contributions are welcomed. + ### First steps #### 1. Install ANTLR4