-
Notifications
You must be signed in to change notification settings - Fork 166
Try using a staged, fancy travis config. #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d58d4ce
Try using a staged, fancy travis config.
matanlurey 3142b06
Remove env.
matanlurey 14f3ba6
Use dart:dev .
matanlurey fd38f50
Fix script.
matanlurey 511437c
Fix script.
matanlurey 1edfc87
Ignore DDC failures for now.
matanlurey 47c6932
Fix dart2js.
matanlurey 1358b2e
Actually skip.
matanlurey f4423f0
Fix again.
matanlurey 8adb644
Fix DDC type errors across package/tests.
matanlurey 3181c3a
Dartfmt.
matanlurey e02696f
Add dart_test.yaml.
matanlurey d9cb9e9
Try firefox instead.
matanlurey eab2f26
Fix travis.
matanlurey fc12188
Merge branch 'try-fancy-travis' of github.com:matanlurey/mockito into…
matanlurey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# See https://www.dartlang.org/guides/libraries/private-files | ||
|
||
# Files and directories created by pub | ||
.dart_tool | ||
.packages | ||
.pub | ||
pubspec.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,53 @@ | ||
language: dart | ||
sudo: false | ||
dart: | ||
- dev | ||
script: ./tool/travis.sh | ||
|
||
# Gives more resources on Travis (8GB Ram, 2 CPUs). | ||
# Do not remove without verifying w/ Travis. | ||
sudo: required | ||
addons: | ||
chrome: stable | ||
|
||
# Build stages: https://docs.travis-ci.com/user/build-stages/. | ||
stages: | ||
- presubmit | ||
- build | ||
- testing | ||
|
||
# 1. Run dartfmt, dartanalyzer, pub run test (VM). | ||
# 2. Then run a build. | ||
# 3. Then run tests compiled via dartdevc and dart2js. | ||
jobs: | ||
include: | ||
- stage: presubmit | ||
script: ./tool/travis.sh dartfmt | ||
dart: dev | ||
- stage: presubmit | ||
script: ./tool/travis.sh dartanalyzer | ||
dart: dev | ||
- stage: presubmit | ||
script: ./tool/travis.sh vm_test | ||
dart: dev | ||
- stage: build | ||
script: ./tool/travis.sh dartdevc_build | ||
dart: dev | ||
- stage: testing | ||
script: ./tool/travis.sh dartdevc_test | ||
dart: dev | ||
- stage: testing | ||
script: ./tool/travis.sh dart2js_test | ||
dart: dev | ||
|
||
# Only building master means that we don't run two builds for each pull request. | ||
branches: | ||
only: [master] | ||
|
||
# Incremental pub cache and builds. | ||
cache: | ||
directories: | ||
- $HOME/.pub-cache | ||
- .dart_tool | ||
|
||
# Necessary for Chrome and Firefox to run | ||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
- "t=0; until (xdpyinfo -display :99 &> /dev/null || test $t -gt 10); do sleep 1; let t=$t+1; done" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# TODO(https://github.com/dart-lang/test/issues/772): Headless chrome timeout. | ||
override_platforms: | ||
chrome: | ||
settings: | ||
headless: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update
mono_repo
to handle "normal" repos – just to support generating this config.I chatted w/ @natebosch about this yesterday
CC @alorenzen