forked from dubzzz/fast-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
93 lines (88 loc) · 2.76 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
language: node_js
node_js:
- '10'
- '8'
- '6'
- '11'
cache:
directories:
- node_modules
script:
- npm run test -- --maxWorkers=4
- npm run e2e -- --maxWorkers=4
after_success:
- if [[ $(node --version) == "v10."* ]]; then npm run coverage; fi
stages:
- code style
- test
- publish documentation
- deploy
jobs:
include:
- stage: code style
env: STEP=FORMAT
script: npm run format:check
- stage: code style
env: STEP=LINT
script: npm run lint:check
- stage: test
env: STEP=EXAMPLES
script:
- npm run build
- cd example ;
bash run.sh ;
cd ..
- stage: test
env: STEP=LEGACY
script:
- npm run build
- nvm install 0.12
- node test/legacy/main.js
- stage: test
env: STEP=ROLLUP
script:
- npm run prebuild
- npm run build:publish-cjs
- npm run build:publish-esm
- npm run webbuild
- npm run test:rollup-esm
- npm run test:rollup-iife
- stage: test
env: STEP=HEAD
script:
- rm -r node_modules/
- rm package-lock.json
- npm install
- npm run test -- --maxWorkers=4
- npm run e2e -- --maxWorkers=4
- stage: publish documentation
if: branch = master AND type = push
script:
- npm run prebuild
- npm run build:publish-types
- npm run docs
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
target-branch: gh-pages
local-dir: docs
on:
branch: master
- stage: deploy
if: tag =~ ^v\d+\.
script:
- npm run prebuild
- npm run build:publish-types
- npm run build:publish-cjs
- npm run build:publish-esm
- npm run webbuild
deploy:
provider: npm
email: [email protected]
skip_cleanup: true
api_key:
secure: pz02NsBWp2+V7L5ScpFig53wF7PbjROaiAXaPzaegyFMc6aPVVWdvh+wMMwbJPTd/zXY3CL0ktRyWJPLtv5ZGFWyIny6artteZ01ZHTDOy/aZVfvvWCAS3cyrwSWc9WTbOtl7O+yow2AEF6mXzUrfqAJeBgg1vkkP2ig5FaBqgY2aaQmGgvkBxImxwPwj/sKxYmCO4hHKKzXewHQkmP9uwVWs/z6e8EVufZYuBtGqB8OOfWTZuhW4Re9oiwTtp8HYCuiWwQI/Pe7G81rqktMJTqXymo041caucSs27Nko9b37RzPAeN4mgZmRbB2qoJJtjasMk5KJq76CPKAsVNwrDLaS6MzghcncHH50uOP/lzfr/YWGmUKD+PnTi5iOJ+OpY4AXgR/phrYsCkmGMrrQqjlA9e+HONoaEElJ9YnxcN36tb2wVNd+FwQ1dw+AlcSyVmIGZkD9pDNh+BTZ12SdtEu5qHuUotetIke3iOXjjOGbtr0ckCgWHtxFlcZMQEFVO9pTyz+f4mdgbMD9DSL7JD0Ns6pTtbGqBqVJmzA4IDVaD6xAedoMDte5QO+ltbM+vKlPIGIocQ6D+K+Z2l4oeiL5f54Lx28wyld0i5foGZGic2hh6ni6ie86/sLzAVBRHtfaiIrzqPztUBzbW+6/tTZI28zqFHLE7EobA7yB/0=
on:
tags: true
repo: dubzzz/fast-check