-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
61 lines (58 loc) · 1.6 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
matrix:
include:
- os: linux
language: android
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
android:
components:
- tools
- platform-tools
- build-tools-29.0.3
- android-29
jdk: oraclejdk8
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
install:
- git clone https://github.com/flutter/flutter.git -b stable
before_deploy:
- ./flutter/bin/flutter -v build apk
- os: osx
osx_image: xcode11.3
language: generic
install:
- sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
- sudo xcodebuild -runFirstLaunch
- sudo xcodebuild -license accept
- git clone https://github.com/flutter/flutter.git -b stable
before_deploy:
- ./flutter/bin/flutter -v build ios --no-codesign
before_script:
- ./flutter/bin/flutter precache
script:
- ./flutter/bin/flutter test
deploy:
provider: releases
pre-release: true
skip_cleanup: true
api_key: ${GH_TOKEN}
file_glob: true
file:
- build/app/outputs/apk/release/app-release.apk
- build/ios/iphoneos/app.ipa
on:
repo: SimonIT/timetracker
tags: true
all_branches: true
cache:
directories:
- $HOME/.pub-cache