Issue 1:
EDIT Probably duplicate of #15293

Steps to Reproduce

Clone https://github.com/flutter/website

Run ./tool/travis.sh

Explanation: We're analyzing our sample code in CI. The files exist in file structures that aren't real flutter projects (example). This worked well until very recently but now all our builds fail.

I can work around this but it would be great to have actual Flutter analysis run on these standalone files.

Logs from running the above command

Flutter crash report; please file at https://github.com/flutter/flutter/issues.

command

flutter analyze _includes/code/animation/animate1/main.dart

exception

ProcessException: ProcessException: No such file or directory

Command: /usr/bin/xcodebuild -project /Users/filiph/dev/flutter-website/ios/Runner.xcodeproj -target Runner -showBuildSettings

#0 _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:485)
#1 _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:631)
#2 Process.runSync (dart:io-patch/process_patch.dart:66)
#3 LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:83)
#4 _runWithLoggingSync (package:flutter_tools/src/base/process.dart:318)
#5 runCheckedSync (package:flutter_tools/src/base/process.dart:277)
#6 XcodeProjectInterpreter.getBuildSettings (package:flutter_tools/src/ios/xcodeproj.dart:99)
#7 CocoaPods.setupPodfile (package:flutter_tools/src/ios/cocoapods.dart:114)
#8 injectPlugins (package:flutter_tools/src/plugins.dart:246)
#9 FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:62)
#10 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:278)
<asynchronous suspension>
#11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:228)
<asynchronous suspension>
#12 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:286)
<asynchronous suspension>
#14 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#15 new Future.sync (dart:async/future.dart:222)
#16 CommandRunner.run (package:args/command_runner.dart:109)
#17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#18 run.<anonymous closure> (package:flutter_tools/runner.dart:90)
<asynchronous suspension>
#19 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#20 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#21 _rootRun (dart:async/zone.dart:1126)
#22 _CustomZone.run (dart:async/zone.dart:1023)
#23 runZoned (dart:async/zone.dart:1501)
#24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#25 run (package:flutter_tools/runner.dart:61)
<asynchronous suspension>
#26 main (package:flutter_tools/executable.dart:48)
<asynchronous suspension>
#27 main (file:///Users/filiph/dev/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#28 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

flutter doctor

[✓] Flutter (Channel master, v0.1.3-pre.19, on Mac OS X 10.13.3 17D102, locale en-US)
• Flutter version 0.1.3-pre.19 at /Users/filiph/dev/flutter
• Framework revision 2337ddef0b (2 days ago), 2018-03-06 22:03:42 -0800
• Engine revision 24cf8ebd86
• Dart version 2.0.0-dev.33.0.flutter-b5b8080b2c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /Users/filiph/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 20.0.3
• Dart plugin version 173.4127.31

[✓] VS Code (version 1.20.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.9.2

[!] Connected devices
! No devices available

! Doctor found issues in 1 category.

Issue 2:
The flutter/website build is broken on Travis. It looks to be broken by something external (the change that triggered the build is a single character change in the website repo). The build clones the latest flutter/flutter master code and runs flutter analyze on some code.

The last working build was after this commit (to website) and analyzed fine:

Using Dart version:
Dart VM version: 2.0.0-dev.32.0.flutter-ee15c8eb68 (Thu Mar 1 22:39:39 2018 +0000) on "linux_x64"
Running "flutter packages get" in website...
Run flutter packages get on _includes/code/animation/animate1
Running "flutter packages get" in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No issues found!
Ran in 6.0s

Then when this commit (to website) was pushed and flutter cloned for its build, it failed with:

Using Dart version:
Dart VM version: 2.0.0-dev.33.0.flutter-b5b8080b2c (Tue Mar 6 14:14:54 2018 +0000) on "linux_x64"
Running "flutter packages get" in website...
Run flutter packages get on _includes/code/animation/animate1
Running "flutter packages get" in animate1...
Run flutter analyze on _includes/code/animation/animate1
Analyzing /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart...
No dart files found at: /home/travis/build/flutter/website/_includes/code/animation/animate1/main.dart
(Ran in 0.3s)
The command "./tool/travis.sh" exited with 3.