-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (71 loc) · 5.46 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
62
63
64
65
66
67
68
69
70
71
language: minimal
jobs:
include:
- os: linux
dist: trusty
android:
components:
- build-tools-28.0.3
- android-28
language: android
- os: osx
osx_image: xcode11.3
- os: windows
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- libplist-utils
git:
depth: 1
cache:
directories:
- "$HOME/.pub-cache"
env:
global:
- secure: mJ08lR5n98p/ep27LxZ/AQwDeGonp/JAZSnROHEuYiQH8Oh9yhbfEBrRcvRLuK9283yIE7gLzEaQ5s9N8EbtDvLQcIq9M48z/lBdqxCdFwQxrt5H3qfjHBfH/dy+ffYDDA7NvNCRry3EUhV9+vyuKaN7uLGWT74Db4cUVjgoo52blPPR37aXfoBNK7eHCoCcQCTA7iEdGmC0yVOnGSLfgmd2aaoY5bVeq9LtfvnKxy67tvOguipFgaELyh4CjTqv2syKCDykQfUo80PCgMQd5hiAFgGWI1fSAx5hkSmW4rhwAHm0gGvZjpYy05PXKeIgqTnMJEoRtvfiyOLD2LffDh4DbD6+fQVuKkSsN0txnUl7QWbPYdTBUEJFSzyywdF70EK0eykGD4JjCyAWwBoKdG9PqKRHDFhUFdv6SqOzZuAwn8Bee+BJa5btv8mS0sErPvAcEj9NctB8xwNbNcQwNbt2R/MClCK0tpNLaXBLQWB6WEpyxsDqsICHz2Ii7XlMZUjI/CcqjHg8e3RXw9ihDk2SK8c26u/QaILHmkoOnnsjfXcpyfyjIO8+ocJ7G+usMFNCys3U7akPCC6eSM/QpeW8PzpUQP6LAhRaDU4b0/ehvI6EXQu2fnEwUNKzgPCx+9Vx+xnmFXFFILQB2qqr972Fx3e3Gd1rc3eN5lsqc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k756CYOACBnNMH3VVZF13ChyZsBFZpn9Pb5Seta4SEOzN/amBFvWFJy1Q76kd54IHvrNuts8JtYO6/3KVSLT/xWiErHZLSMEhTVZ6RJZj1XXKgVK7grqJaGTPgaivq4GmYn/WA00bn07o3yooCgYAf2Czm+MUkmgbW0fZZolXwzgVAPyo3gHM7j3fASp4Nifb0vNhzIGyRNu1W2y6Ws+zJ4sbZjW3bC6Tjbn0dcuqlF8TYkAclWVWiWogia2OmXgQFtzupkVWZoXcNfq0tWnMmTk/I2OpaAnPIq2OUsSLIkrKK/s/KbDckVAZTIgY=
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
matrix:
- FLUTTER_VERSION=master
before_script:
- if [ $TRAVIS_OS_NAME = osx ]; then brew update; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install --HEAD usbmuxd; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew unlink usbmuxd; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew link usbmuxd; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install --HEAD libimobiledevice; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install ideviceinstaller; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install ios-deploy; fi
- if [ $TRAVIS_OS_NAME = windows ]; then choco install jdk8 openssl dos2unix; fi
- if [ $TRAVIS_OS_NAME = windows ]; then eval $(powershell -NonInteractive -Command 'write("export PATH=`"" + ([Environment]::GetEnvironmentVariable("PATH","Machine") + ";" + [Environment]::GetEnvironmentVariable("PATH","User")).replace("\","/").replace("C:","/c").replace(";",":") + ":`$PATH`"")'); fi
- cd .. && git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION && cd grade_view
- if [ $TRAVIS_OS_NAME = windows ]; then unix2dos ../flutter/bin/flutter; fi
- keytool -genkey -v -keystore android/app/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key -storepass weakpass -keypass weakpass -dname "CN=a" -noprompt
- openssl aes-256-cbc -K $encrypted_c57c16130b84_key -iv $encrypted_c57c16130b84_iv -in travis.key.properties.enc -out android/key.properties -d
- "../flutter/bin/flutter config --enable-web"
- if [ $TRAVIS_OS_NAME = osx ]; then ../flutter/bin/flutter config --enable-macos-desktop; fi
- if [ $TRAVIS_OS_NAME = osx ]; then ../flutter/bin/flutter precache --macos; fi
- if [ $TRAVIS_OS_NAME = linux ]; then ../flutter/bin/flutter config --enable-linux-desktop; fi
- if [ $TRAVIS_OS_NAME = linux ]; then ../flutter/bin/flutter precache --linux; fi
- if [ $TRAVIS_OS_NAME = windows ]; then ../flutter/bin/flutter config --enable-windows-desktop; fi
- if [ $TRAVIS_OS_NAME = windows ]; then ../flutter/bin/flutter precache --windows; fi
- "../flutter/bin/flutter doctor"
- cp ios/Runner/GoogleService-Info-sample.plist ios/Runner/GoogleService-Info.plist
- if [ $TRAVIS_OS_NAME = osx ]; then plutil -replace API_KEY -string $FIREBASE_SECRET ios/Runner/GoogleService-Info.plist; fi
- if [ $TRAVIS_OS_NAME = linux ]; then plistutil -replace API_KEY -string $FIREBASE_SECRET ios/Runner/GoogleService-Info.plist; fi
script:
- ls -alh
- "../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run lib/"
- "../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run test/"
- "if [ $TRAVIS_OS_NAME = linux ]; then ../flutter/bin/flutter build appbundle; fi"
- "if [ $TRAVIS_OS_NAME = linux ]; then ../flutter/bin/flutter build apk; fi"
- if [ $TRAVIS_OS_NAME = osx ]; then ../flutter/bin/flutter build ios --no-codesign; fi
- "../flutter/bin/flutter build web"
- if [ $TRAVIS_OS_NAME = osx ]; then ../flutter/bin/flutter build macos; fi
- if [ $TRAVIS_OS_NAME = linux ]; then ../flutter/bin/flutter build linux; fi
- if [ $TRAVIS_OS_NAME = windows ]; then ../flutter/bin/flutter build windows; fi