forked from recurly/recurly-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
123 lines (120 loc) · 3.59 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
branches:
except: release-notes
language: node_js
sudo: false
node_js:
- 12
cache:
directories:
- node_modules
before_install:
- bash .travis-pre.sh
env:
global:
- secure: U0dvpEjblZ3i+knw/cOWWgLvHUz/L9vN7Kv5VKDJ5ydvLy/1Tcueokp4hL7jhu4zwzlJto6MdFG1uKXr97zs+ETV9clYtRFBF/4YlAGs8sQcvPu4BOyH9pUJ77tnNR2ZX62wik9UFl6LmJOBpCjVkp+kh6it44QJm4Zv03Yx47w=
- secure: wrAUnHRseJQrRUqoKWCY/Sw8Wd21kssvYiQ26HpjNc8Q3+uQY6IAMwyyyRRbr65nwHnYrk6KJfSEHYgmQbMeie/3+LseXbDGd9BmWAvujI2ZXNPjFxhSA4gmBvVtT/57fZaCdc8pAnGLb8OwiBSgQN0UJ55Kr59Yjhi3ehBZd1Q=
- secure: yIrHdkLhWtO37N24cRU71PK80zvkPzlJ1Jm+1MS3C6/icgJ8At1N/UgpBdxuBs1tlJm1O7Ahk+/MhpGWlspx9tCF7Hzw9Rj0xpKhqsvM155zgH582xNPwNebiCr/tmsH2/ELgFBBgC9sCW5luzeKx9nyuedGA4fmD2fK5Phc5EE=
- secure: fGRo+RTDcnWNnYjSgDtHIRFrkXDxYzFrF0JaGs73ZunLXoYbJ5FclaM9+wjw8BbGEEsVbyBYMSHyy8E2Y0VRggal/XlFkKaqQQHSDVuslcM5YdAkcLC8jFSuSzP32X6cY+L9fKszFVaO+vn84lXwiQnqgpOHAtN32/eB//5Ky1s=
- secure: m9ylFoxkeoOjBTYi7IF93Rqq95uJkL95onYJc5k1Xo2wNCDrAfvZ8cv6o70Qr/lpWqvgxPueDP6VXjxKAmSueQnx9uGKyigFCpMH4zl7+7n7l4382Eeyex2uE6kCh/lA4EjkmE3QdIW6l8YCGJD1IoHqVSKPZ67ZSdnapTgGPYQ=
script: make test-unit-ci
jobs:
include:
- stage: Check
name: Lint
script: make lint
- stage: Check
name: Types
script: make test-types
- stage: Unit Test
name: Coverage
addons:
chrome: stable
env: BROWSER=ChromeHeadlessCI REPORT_COVERAGE=true
script: make test-unit-cov-ci
- name: Chrome
env: BROWSER=Chrome
addons:
chrome: stable
services:
- xvfb
- name: Firefox
env: BROWSER=Firefox
addons:
firefox: latest
services:
- xvfb
- name: Safari
env: BROWSER=BrowserStackSafari
- name: Edge
env: BROWSER=BrowserStackEdge
- name: Internet Explorer 11
env: BROWSER=BrowserStackIe11
- name: iOS 13
env: BROWSER=BrowserStackIos13
- name: iOS 12
env: BROWSER=BrowserStackIos12
- name: Android 10
env: BROWSER=BrowserStackAndroid10
- name: Android 9
env: BROWSER=BrowserStackAndroid9
- name: Android 8
env: BROWSER=BrowserStackAndroid8
- name: Electron
env: BROWSER=Electron
services:
- xvfb
- name: react-recurly
env: RECURLY_JS_SHA=$TRAVIS_COMMIT
script:
- mkdir -p vendor && cd vendor
- git clone https://github.com/recurly/react-recurly.git && cd react-recurly
- make test
- &e2e
stage: End-to-End Test
name: Chrome
env: BROWSER=BrowserStackChrome
script: make test-e2e-ci
- <<: *e2e
name: Firefox
env: BROWSER=BrowserStackFirefox
- <<: *e2e
name: Safari
env: BROWSER=BrowserStackSafari
- <<: *e2e
name: Edge
env: BROWSER=BrowserStackEdge
- <<: *e2e
name: Internet Explorer 11
env: BROWSER=BrowserStackIe11
- <<: *e2e
name: iOS 13
env: BROWSER=BrowserStackIos13
- <<: *e2e
name: iOS 12
env: BROWSER=BrowserStackIos12
- <<: *e2e
name: Android 10
env: BROWSER=BrowserStackAndroid10
- <<: *e2e
name: Android 9
env: BROWSER=BrowserStackAndroid9
- <<: *e2e
name: Android 8
env: BROWSER=BrowserStackAndroid8
- <<: *e2e
name: Electron
env: BROWSER=Electron
services:
- xvfb
- stage: Publish
name: Publish Artifacts
addons:
artifacts:
paths:
- build
target_paths:
- artifacts/$TRAVIS_COMMIT
s3_region: us-west-1
permissions: public-read
env: ARTIFACTS_BUCKET=recurly-js
script: make build