Skip to content

Commit

Permalink
Travis: test oldest support SDK (dart-archive/collection#103)
Browse files Browse the repository at this point in the history
* Drop web tests
* Drop unused files
* Delete travis.sh
  • Loading branch information
kevmoo authored Apr 3, 2019
1 parent a86246f commit 12b3598
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 110 deletions.
57 changes: 16 additions & 41 deletions pkgs/collection/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@

language: dart

# Gives more resources on Travis (8GB Ram, 2 CPUs).
# Do not remove without verifying w/ Travis.
sudo: required
addons:
chrome: stable
dart:
- 2.0.0
- dev

# Build stages: https://docs.travis-ci.com/user/build-stages/.
stages:
- presubmit
- build
- testing
dart_task:
- test

# 1. Run dartfmt, dartanalyzer, pub run test (VM).
# 2. Then run a build.
# 3. Then run tests compiled via dartdevc and dart2js.
jobs:
matrix:
include:
- stage: presubmit
script: ./tool/travis.sh dartfmt
dart: dev
- stage: presubmit
script: ./tool/travis.sh dartanalyzer
dart: dev
- stage: build
script: ./tool/travis.sh dartdevc_build
dart: dev
- stage: testing
script: ./tool/travis.sh vm_test
dart: dev
- stage: testing
script: ./tool/travis.sh dartdevc_test
dart: dev
- stage: testing
script: ./tool/travis.sh dart2js_test
dart: dev
# Only validate formatting using the dev release
- dart: dev
dart_task: dartfmt
- dart: dev
dart_task:
dartanalyzer: --fatal-infos --fatal-warnings .
- dart: 2.0.0
dart_task:
dartanalyzer: --fatal-warnings .

# Only building master means that we don't run two builds for each pull request.
branches:
Expand All @@ -44,11 +26,4 @@ branches:
# 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"
- $HOME/.pub-cache
3 changes: 0 additions & 3 deletions pkgs/collection/codereview.settings

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/collection/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage: https://www.github.com/dart-lang/collection

environment:
# Required for Dart 2.0 collection changes.
sdk: '>=2.0.0-dev.55.0 <3.0.0'
sdk: '>=2.0.0 <3.0.0'

dev_dependencies:
build_runner: ^1.0.0
Expand Down
65 changes: 0 additions & 65 deletions pkgs/collection/tool/travis.sh

This file was deleted.

0 comments on commit 12b3598

Please sign in to comment.