This repository has been archived by the owner. It is now read-only.
forked from hamzahamidi/ajsf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (58 loc) · 1.83 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
language: node_js
node_js:
- "12.14.1"
addons:
chrome: stable
env:
global:
CC_TEST_REPORTER_ID=$CODE_CLIMATE_TOKEN
branches:
only:
- master
- v8
before_install:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
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
after_script:
- ./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/ajsf-core/lcov.info
- echo $TRAVIS_TEST_RESULT
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then ./cc-test-reporter upload-coverage; fi
- 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: 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