Skip to content
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

Add analyze task to build configuration #19

Merged
merged 1 commit into from
Sep 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
matrix:
include:
# Job 1) Run analyzer
- os: linux
env:
- SHARD=Analyze
sudo: false
addons:
apt:
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- libstdc++6
- fonts-droid
before_script:
- git clone https://github.com/flutter/flutter.git $HOME/flutter
- export PATH=$HOME/flutter/bin:$HOME/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
script:
- flutter analyze
# Job 2) Build the Android axample application (.apk)
- os: linux
env:
- SHARD="Build example apks"
Expand All @@ -21,7 +41,7 @@ matrix:
script:
- cd ./example
- flutter build apk
# Job 2) Build example IPAs
# Job 3) Build the iOS example Applications (.ipa)
- os: osx
env:
- SHARD="Build example ipas"
Expand All @@ -35,4 +55,4 @@ matrix:
- flutter build ios --no-codesign
cache:
directories:
- $HOME/.pub-cache
- $HOME/.pub-cache