Remove Travis configuration from flutter/flutter (#20288)
This removes the final traces of Travis and Appveyor from the Flutter tree. I've updated the documentation and fixed a couple of places where scripts look for Travis, and eliminated the dart tools runningOnTravis function (which was unused anyhow). There are places in the flutter script that used to look for the environment variable TRAVIS. We actually do want to continue to detect that we're running on Travis there, since in the plugins repo we still use Travis (for the moment). In any case, it's OK, because the CI environment variable is set on all of the CI bots (Cirrus, Travis, and Appveyor). FastLane doesn't have a setup_cirrus equivalent to setup_travis, but it actually doesn't matter there either, since it doesn't do Travis-specific things, and it also looks for the CI environment variable.
This commit is contained in:
@@ -53,7 +53,6 @@ export 'src/finders.dart';
|
||||
export 'src/goldens.dart';
|
||||
export 'src/matchers.dart';
|
||||
export 'src/nonconst.dart';
|
||||
export 'src/platform.dart';
|
||||
export 'src/stack_manipulation.dart';
|
||||
export 'src/test_async_utils.dart';
|
||||
export 'src/test_exception_reporter.dart';
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
/// Whether the test is running in a Travis CI environment.
|
||||
bool get runningOnTravis => Platform.environment['TRAVIS'] == 'true';
|
||||
@@ -24,21 +24,24 @@ class BotDetector {
|
||||
return platform.environment['BOT'] != 'false'
|
||||
&& (platform.environment['BOT'] == 'true'
|
||||
|
||||
// https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
|
||||
// https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
|
||||
|| platform.environment['TRAVIS'] == 'true'
|
||||
|| platform.environment['CONTINUOUS_INTEGRATION'] == 'true'
|
||||
|| platform.environment.containsKey('CI') // Travis and AppVeyor
|
||||
|
||||
// https://www.appveyor.com/docs/environment-variables/
|
||||
// https://www.appveyor.com/docs/environment-variables/
|
||||
|| platform.environment.containsKey('APPVEYOR')
|
||||
|
||||
// https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
|
||||
// https://cirrus-ci.org/guide/writing-tasks/#environment-variables
|
||||
|| platform.environment.containsKey('CIRRUS_CI')
|
||||
|
||||
// https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
|
||||
|| (platform.environment.containsKey('AWS_REGION') && platform.environment.containsKey('CODEBUILD_INITIATOR'))
|
||||
|
||||
// https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables
|
||||
// https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables
|
||||
|| platform.environment.containsKey('JENKINS_URL')
|
||||
|
||||
// Properties on Flutter's Chrome Infra bots.
|
||||
// Properties on Flutter's Chrome Infra bots.
|
||||
|| platform.environment['CHROME_HEADLESS'] == '1'
|
||||
|| platform.environment.containsKey('BUILDBOT_BUILDERNAME'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user