circleCI support

This commit is contained in:
yogevbd
2019-07-29 16:32:36 +03:00
parent e341894ed4
commit 2e16ef7e7a
3 changed files with 30 additions and 0 deletions

17
.circleci/config.yml Normal file
View File

@@ -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'

View File

@@ -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"
},

12
scripts/install.ios.sh Executable file
View File

@@ -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