mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-01-12 22:50:34 +08:00
circleCI support
This commit is contained in:
17
.circleci/config.yml
Normal file
17
.circleci/config.yml
Normal 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'
|
||||
@@ -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
12
scripts/install.ios.sh
Executable 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
|
||||
Reference in New Issue
Block a user