From 2e16ef7e7a6da2a5d9dd6b47c8f9fa99c1470845 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Mon, 29 Jul 2019 16:32:36 +0300 Subject: [PATCH] circleCI support --- .circleci/config.yml | 17 +++++++++++++++++ package.json | 1 + scripts/install.ios.sh | 12 ++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 .circleci/config.yml create mode 100755 scripts/install.ios.sh diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..eae6e9f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ + +version: 1 +macos: +xcode: "10.2.1" +jobs: + build: + steps: + - checkout + - run: + name: Install Dependencies + command: scripts/install.ios.sh + - run: + name: npm install + command: npm install + - run: + name: Detox iOS CI + command: 'npm run test-e2e-ios-release' \ No newline at end of file diff --git a/package.json b/package.json index 1cfcddd..72c3efb 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "start": "node ./scripts/start", "test-e2e-ios": "node ./scripts/test-e2e --ios", "test-unit-ios": "node ./scripts/test-unit --ios", + "test-unit-ios-release": "node ./scripts/test-unit --ios --release", "test-unit-android": "node ./scripts/test-unit --android", "test-js": "node ./scripts/test-js" }, diff --git a/scripts/install.ios.sh b/scripts/install.ios.sh new file mode 100755 index 0000000..5fac98e --- /dev/null +++ b/scripts/install.ios.sh @@ -0,0 +1,12 @@ +#!/bin/bash -e + +$(dirname "$0")/install.sh + +HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install ruby +export PATH="/usr/local/opt/ruby/bin:$PATH" +gem install xcpretty +export CODE_SIGNING_REQUIRED=NO +HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew +HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils + +echo 'export PATH=$PATH' >> $BASH_ENV \ No newline at end of file -- 2.26.2