forked from Workiva/json_schema
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (33 loc) · 1.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: dart
dart:
- 2.5.0
- stable
sudo: required
addons:
chrome: stable
cache:
directories:
- $HOME/.pub-cache
install: true
script:
# Use pub 2 for Dart 1.
- |
if [[ $(dart dart_version.dart) = "1" ]]; then
curl --connect-timeout 15 --retry 5 https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip > ${TRAVIS_HOME}/dartsdk2.zip
unzip ${TRAVIS_HOME}/dartsdk2.zip -d ${TRAVIS_HOME}/dart2 > /dev/null
rm ${TRAVIS_HOME}/dartsdk2.zip
_PUB_TEST_SDK_VERSION=2.5.0 timeout 5m ${TRAVIS_HOME}/dart2/dart-sdk/bin/pub get --no-precompile
pub get
fi
# Use normal "pub get" for Dart 2.
- |
if [[ $(dart dart_version.dart) = "2" ]]; then
pub get
fi
- pub run dependency_validator --ignore coverage
- pub run dart_dev dart2-only -- format --check
- pub run dart_dev analyze
- pub run dart_dev test -p vm
- pub run dart_dev test -p chrome --release
# TODO: re-enable coverage when a Dart 2 solution is available.
# - pub run dart_dev dart1-only -- coverage --no-html && bash <(curl -s https://codecov.io/bash) -f coverage/coverage.lcov