-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
42 lines (39 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cache: false
before_install:
- npm install -g yarn --ignore-dependencies
- yarn install -g react-native-cli
- yarn install -C browser-sign-in/
- yarn install -C custom-sign-in/
jobs:
include:
- language: node_js
os: linux
node_js: 14.15
stage: Unit tests
name: React Native
script:
- yarn run test:browser
- language: objective-c
os: osx
osx_image: xcode12.5
stage: UI tests
name: Browser Sign In
install:
- echo -e "CLIENT_ID=${CLIENT_ID}\nISSUER=${ISSUER}\nREDIRECT_URI=${REDIRECT_URI}\nLOGOUT_REDIRECT_URI=${LOGOUT_REDIRECT_URI}" > browser-sign-in/.env
- cd browser-sign-in/ios
- pod install --repo-update
- cd ../../
script:
- set -o pipefail && xcodebuild -workspace browser-sign-in/ios/browserSignIn.xcworkspace -scheme browserSignIn -destination 'platform=iOS Simulator,OS=latest,name=iPhone 11' -sdk iphonesimulator clean test | xcpretty
- language: objective-c
os: osx
osx_image: xcode12.5
stage: UI tests
name: Custom Sign In
install:
- echo -e "CLIENT_ID=${CLIENT_ID}\nISSUER=${ISSUER}\nREDIRECT_URI=${REDIRECT_URI}\nLOGOUT_REDIRECT_URI=${LOGOUT_REDIRECT_URI}" > custom-sign-in/.env
- cd custom-sign-in/ios
- pod install --repo-update
- cd ../../
script:
- set -o pipefail && xcodebuild -workspace custom-sign-in/ios/CustomSignIn.xcworkspace -scheme CustomSignIn -destination 'platform=iOS Simulator,OS=latest,name=iPhone 11' -sdk iphonesimulator clean test | xcpretty