-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (30 loc) · 925 Bytes
/
.travis.yml
File metadata and controls
30 lines (30 loc) · 925 Bytes
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
language: dart
dart:
- stable
os:
- osx
install:
- echo 'Avoid default Travis CI install step' # this is to avoid an error with pub in Travis
before_script:
- cd ..
- git clone https://github.com/flutter/flutter.git
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
script:
- cd $TRAVIS_BUILD_DIR
- flutter channel stable # 新版本 flutter pub 有问题,切换到稳定版本
- flutter packages get
- flutter analyze --no-pub --no-current-package lib
- flutter packages pub publish --dry-run --trace
before_deploy:
- chmod +x ./.travis/publish.sh # giving execution permissions to this file to avoid error 127.
- mv ./.travis ../ # moving this out the publication folder as we don't want to publish it.
deploy:
provider: script
skip_cleanup: true
script: "../.travis/publish.sh"
on:
tags: true
cache:
directories:
- $HOME/.pub-cache