forked from pubkey/rxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (92 loc) · 3.18 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
language: node_js
sudo: required
cache: false
dist: trusty
os:
- linux
node_js:
- "13.8.0"
services:
- xvfb
- docker
addons:
chrome: stable
firefox: latest
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- docker run -d -p 5984:5984 --rm --name rxdb-couchdb couchdb:2.1.1
stages:
- install
- build
- code format
- unit tests
- other
- examples
jobs:
include:
- stage: install
script: travis_retry npm install --depth 0 --silent
- stage: build
script: npm run build && git diff dist/es/
- stage: code format
script: travis_retry npm run test:typings
env: LABEL=test:typings:ci
- stage: code format
script: travis_retry npm run check-types
env: LABEL=check-types
- stage: code format
script: npm run test:deps
env: LABEL=test:deps
- stage: code format
script: npm run test:circular
env: LABEL=test:circular
- stage: code format
script: npm run lint
env: LABEL=lint
- stage: unit tests
script: travis_retry npm run test:node
env: LABEL=test:node
- stage: unit tests
script: travis_retry npm run test:fast
env: LABEL=test:fast
- stage: unit tests
script: travis_retry npm run test:browser
env: LABEL=test:browser
- stage: unit tests
script: travis_retry npm run test:couchdb
env: LABEL=test:couchdb
- stage: unit tests
script: travis_retry npm run test:performance
env: LABEL=test:performance
- stage: other
script: npm run build:size
env: LABEL=build:size
- stage: other
script: npm run build:rollup
env: LABEL=build:rollup
- stage: other
script: npm run build && (cd ./test/tutorials/ && npm install && travis_retry npm test)
env: LABEL=docs
- stage: examples
script: npm run build && (cd ./examples/angular && npm install > "/dev/null" 2>&1 && npm run lint && npm run build && travis_retry npm run test:build)
env: LABEL=angular
- stage: examples
script: npm run build && (cd ./examples/vue && npm install > "/dev/null" 2>&1 && npm run lint && npm run build && travis_retry npm run test)
env: LABEL=vue
- stage: examples
script: npm run build && (cd ./examples/electron && npm install > "/dev/null" 2>&1 && travis_retry npm run test)
env: LABEL=electron
- stage: examples
script: npm run build && (cd ./examples/electron-remote && npm install > "/dev/null" 2>&1 && travis_retry npm run test)
env: LABEL=electron-remote
- stage: examples
script: npm run build && (cd ./examples/react-native && npx yarn@1.13.0 install > "/dev/null" 2>&1 && travis_retry npm run test && echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p && npm run test:bundle)
env: LABEL=react-native
- stage: examples
script: npm run build && (cd ./examples/node && npm install > "/dev/null" 2>&1 && travis_retry npm run test)
env: LABEL=node
- stage: examples
script: npm run build && (cd ./examples/graphql && npm install > "/dev/null" 2>&1 && npm run build && travis_retry npm run test:ci)
env: LABEL=graphql