Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
"android": | ||
docker: | ||
- image: mobiledevops/flutter-sdk-image:v1.7.8-hotfix.4 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Flutter Android Build | ||
command: flutter build apk | ||
|
||
"ios": | ||
macos: | ||
xcode: "10.3.0" | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Flutter SDK Manager | ||
command: npm install -g fvm | ||
- run: | ||
name: Install Flutter SDK | ||
command: fvm stable && fvm v1.7.8+hotfix.4 | ||
- run: | ||
name: Compile iOS App | ||
command: flutter build ios --release --no-codesign | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- "android" | ||
- "ios" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,43 @@ | ||
|
||
dist: bionic | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
- DOCKER_IMAGE=mobiledevops/flutter-sdk-image:v1.7.8-hotfix.4 | ||
global: | ||
- FLUTTER_VERSION=v1.7.8+hotfix.4 | ||
- DOCKER_IMAGE=mobiledevops/flutter-sdk-image:v1.7.8-hotfix.4 | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: bionic | ||
services: | ||
- docker | ||
- os: osx | ||
osx_image: xcode10.3 | ||
|
||
before_install: | ||
- docker pull $DOCKER_IMAGE | ||
- docker run --name android_ci -t -d $DOCKER_IMAGE /bin/sh | ||
- tar Ccf . - . | docker exec -i android_ci tar Cxf /home/mobiledevops/app - | ||
- | | ||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then | ||
docker pull $DOCKER_IMAGE | ||
docker run --name android_ci -t -d $DOCKER_IMAGE /bin/sh | ||
tar Ccf . - . | docker exec -i android_ci tar Cxf /home/mobiledevops/app - | ||
fi | ||
- | | ||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then | ||
bundle install | ||
npm install -g fvm | ||
fvm stable > /dev/null | ||
fvm $FLUTTER_VERSION > /dev/null | ||
fi | ||
script: | ||
- docker exec android_ci flutter build apk | ||
- | | ||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then | ||
docker exec android_ci flutter build apk | ||
fi | ||
- | | ||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then | ||
flutter build ios --release --no-codesign | ||
fi |