-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
65 lines (57 loc) · 1.48 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
os: osx
osx_image: xcode9.4
language: objective-c
node_js:
- 8.14.1
stages:
- test2
- test1
- build
- name: test branch 1
if: branch = master
- name: test branch 2
if: branch = staging
jobs:
include:
- stage: test1
before_script:
- openssl aes-256-cbc -K $encrypted_5ada4aafeac8_key -iv $encrypted_5ada4aafeac8_iv -in deploy_key.enc -out ./deploy_key -d
script:
- pwd && ls
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host $SERVER_IP_ADDRESS\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- ls
- pwd
- $encrypted_5478faad
- stage: build and deploy ios appetize release
install:
- npm install
- cd ios
- pod --no-ansi install
- cd ..
before_script:
- "./scripts/versions.sh"
# - "./scripts/prepare-detox-ci-req.sh"
script:
- |
xcodebuild \
-workspace ios/MobileApp.xcworkspace \
-scheme MobileApp \
-configuration Release \
-sdk iphonesimulator \
-derivedDataPath ios/build \
-quiet
- stage: test2
- pwd && ls
- echo "testing"
# - npm run test
- stage: test branch 1
- pwd && ls
- echo "testing branch master"
# - npm run test
- stage: test branch 2
- pwd && ls
- echo "testing branch staging"
# - npm run test