diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000000000000000000000000000000000..eae6e9f8302810ce5a37ba0190cc7f79acb095c9 --- /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 1cfcdddadc82bee575f9ff4321267f304f4b3aaf..72c3efbe4b4f6bd750c77b51108038de1afb814b 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 0000000000000000000000000000000000000000..5fac98ed379db41aa78d82b5732f4432e472d8ee --- /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