-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 936 Bytes
/
.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
language: node_js
node_js:
- stable
branches:
only:
- master
- Dev
- /^test-.*$/
cache:
directories:
- ~/.npm
- .jest
install:
- yarn
before_script:
- npm install -g npm@latest
- npm install
script:
- npm ci
stages:
- name: ci test dev
if: branch = Dev
- name: ci test branchs
if: branch =~ /^test-.*$/
- name: build
if: branch = master
jobs:
include:
- stage: ci test dev
node_js: stable
script:
- npx jest --ci
- stage: ci test branchs
node_js: stable
script:
- npx jest --ci
- stage: build
node_js: stable
before_script:
- npm install -g npm@latest
- npm install
- npm install jest-expo
- npm install -g expo-cli
script:
- npm test
- npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD
- npx expo build:android --type app-bundle
- npx expo build:ios --type archive