forked from wenzhixin/bootstrap-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (47 loc) · 1.12 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
stages:
- test
- deploy
jobs:
include:
- stage: test
language: node_js
node_js:
- 12
name: "Lint src and check docs"
cache:
npm: true
directories:
- ~/.cache
script:
- cd tools
- git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples
- npm run pre-commit
if: branch != master AND type = pull_request
- stage: test
language: node_js
node_js:
- 12
name: "Cypress Test"
cache:
npm: true
directories:
- ~/.cache
script:
- git clone --depth=1 https://github.com/wenzhixin/bootstrap-table-examples cypress/html
- npm run css:build:src
- npm run test
if: branch != master AND type = pull_request
- stage: deploy
name: "Deploy docs"
language: ruby
rvm:
- 2.4.1
before_install:
- nvm install 12
script: ./deploy.sh
if: branch = master AND type = push
cache: bundler
env:
global:
- ENCRYPTION_LABEL: "5453d0fdf68a"
- COMMIT_AUTHOR_EMAIL: "[email protected]"