forked from newsuk/times-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
67 lines (64 loc) · 2.09 KB
/
bitrise.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
66
---
format_version: '3'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
workflows:
fructose-tests:
steps:
- script@1.1.4:
title: build app
inputs:
- content: |-
#!/bin/bash
NODE_VERSION=stable
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
export NVM_DIR=~/.nvm
nvm install stable
nvm use stable
npm install --global yarn@1.3.2
# debug log
set -x
rm -rf ios/build
brew install fontforge
yarn
yarn ios -- --simulator "iPhone 7"
kill -9 $(lsof -ti :8081)
echo 'should exit with 0'
- script@1.1.4:
title: run fructose tests
inputs:
- content: |-
#!/bin/bash
# fail if any commands fails
set -e
# set up nvm
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
export NVM_DIR=~/.nvm
nvm use stable
# debug log
set -x
#iOS setup
# install applesmutils
brew tap wix/brew
brew install applesimutils --HEAD
# set device scale
defaults write ~/Library/Preferences/com.apple.iphonesimulator SimulatorWindowLastScale-com.apple.CoreSimulator.SimDeviceType.iPhone-7 "0.55"
#web setup
brew tap caskroom/cask
brew cask install google-chrome
# tests
yarn functional-test:ios
yarn functional-test:web
- script@1.1.4:
title: screenshot of desktop
inputs:
- content: |-
#!/bin/bash
# fail if any commands fails
set -e
# debug log
set -x
screencapture -P $BITRISE_DEPLOY_DIR/bitrise_screen.png
is_always_run: true
- deploy-to-bitrise-io@1.3.6: {}