Skip to content

Commit

Permalink
Add iOS ci configuration for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
messeb committed Sep 3, 2019
1 parent 98ae2be commit 0486566
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 11 deletions.
25 changes: 24 additions & 1 deletion .circleci/config.yml
@@ -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"
47 changes: 37 additions & 10 deletions .travis.yml
@@ -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

0 comments on commit 0486566

Please sign in to comment.