forked from hamzahamidi/ajsf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (62 loc) · 2 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
language: node_js
node_js:
- "12.14.1"
addons:
chrome: stable
env:
global:
CODECOV_TOKEN=$CODECOV_TOKEN
branches:
only:
- master
- v8
before_script:
- yarn install --frozen-lockfile
jobs:
include:
- stage: Build @ajsf/core
name: ajsf/core
script:
- yarn build:core
- yarn test:core --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- stage: Build @ajsf/bootstrap3
name: ajsf/bootstrap3
script:
- yarn build:core
- yarn build:bs3
- yarn test:bs3 --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- stage: Build @ajsf/bootstrap4
name: ajsf/bootstrap4
script:
- yarn build:core
- yarn build:bs4
- yarn test:bs4 --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- stage: Build @ajsf/material
name: ajsf/material
script:
- yarn build:core
- yarn build:material
- yarn test:material --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- stage: Test coverage
name: Test coverage
script:
- yarn build:core
- yarn test:core --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- yarn test:bs3 --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- yarn test:bs4 --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
- yarn test:material --browsers=ChromeHeadlessNoSandbox --codeCoverage=true --watch=false
after_script:
- echo $TRAVIS_TEST_RESULT
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then yarn test:coverage; fi
- stage: Build demo application & Deploy
name: online Demo
script:
- yarn build:demo
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master
local_dir: dist/demo