From 943ae17b5869b2d7577d3dfee993da52d1e9b88a Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 14 Nov 2020 21:29:43 +0100 Subject: [PATCH] CircleCI: Try to build it on osx --- .circleci/config.yml | 46 ++++++++++++++++++++++++++------- ios/keys/fastlane_password | Bin 0 -> 42 bytes scripts/build_ios.sh | 11 ++++---- scripts/ios_install_flutter.sh | 10 +++++++ 4 files changed, 52 insertions(+), 15 deletions(-) create mode 100644 ios/keys/fastlane_password create mode 100755 scripts/ios_install_flutter.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 6e9e6200..3203baa3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,22 +1,16 @@ -version: 2 +version: 2.1 jobs: - build: + build_android: docker: - image: vhanda/flutter-android:latest steps: - checkout - run: - name: Setup Flutter Env + name: Setup GitJournal Build Env command: /opt/flutter/bin/cache/dart-sdk/bin/dart ./scripts/setup_env.dart - run: name: SSH Problem command: echo 'Host *\n StrictHostKeyChecking no' > ~/.ssh/config - - run: - name: Current Directory - command: pwd - - run: - name: List Directory - command: ls -l - run: name: Test command: flutter test -j 1 --coverage --machine | tojunit --output junit.xml @@ -51,3 +45,37 @@ jobs: - run: name: Publish Alpha command: cd android && fastlane alphaBuild + build_ios: + macos: + xcode: 11.3.1 + steps: + - checkout + - run: + name: Install gpg + command: brew install gnupg git-crypt md5sha1sum wget + - run: + name: Install Flutter + command: ./scripts/ios_install_flutter.sh + - run: + name: Setup Environment Variables + command: | + echo "export PATH=flutter/bin:$PATH" >> $BASH_ENV + - run: + name: Unlock Secrets + command: ./scripts/decrypt_secrets.sh + - run: + name: Setup GitJournal Build Env + command: ./flutter/bin/cache/dart-sdk/bin/dart ./scripts/setup_env.dart + - run: + name: Setup provisioning profile + command: ./scripts/add_ios_keys.sh + - run: + name: Build App + command: ./scripts/build_ios.sh + +workflows: + version: 2 + build_all: + jobs: + - build_android + - build_ios diff --git a/ios/keys/fastlane_password b/ios/keys/fastlane_password new file mode 100644 index 0000000000000000000000000000000000000000..037f534b0231b9dc0115ebb2f88f993707312397 GIT binary patch literal 42 ycmZQ@_Y83kiVO&02u