forked from GrabarzUndPartner/gp-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·92 lines (91 loc) · 5.84 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
language: node_js
branches:
except:
- /^v\d+\.\d+\.\d+$/
addons:
apt:
update: true
packages:
- libjpeg-dev
- libpng-dev
- libgif-dev
- libgtk2.0-0
- libnotify-dev
- libgconf-2-4
- libnss3
- libxss1
- libasound2
services:
- xvfb
env:
global:
#packtracker
- secure: "K7azcCqLptmg4uQUzLHyoDmqo9hmcjX+WK9VkhzMhvDRCiMCxkK0kOm6GXWOfCroeTN97EIkDx/5MrLUIXGUwEiAueNCeIkNEgY5hKTJRuWib6hBdc1ArghJiCAdVhIoDYJsRasrJ7B4QbcLFjoHAYvAPKArFNlVN5+ZJCQ+v1ZPT2yaItkuRBVy+9vLxPN75yJwciPC+ruj19WvMgmWOH/nlmYCYm2830b7IjZkFuUm67/aEdjnhXaOVErmXCT6sASk/gGlX6XqejChuIze5BC5j5phYiyNQRbY5D/CzhpPmGdbDYPo85/pusixGSLYN7cC8XoKOvWrdSXsHyBbkfmXPfG2rDrQ2p6Y+MVEyBEbbq+yZvCD6LLG25koq4N3rBu77ZDbLw977hjoWmVC1IdX+1uWTdRfcuNY112UV8vvrReLHdZzC2KHfiuNvzq4jV2ogNfQvFexTIAZk7mD8uoe3+uXgCg7nMMKOLHRx3TyqK6YPT0fwrffcMpdBnaIAyvd68gPOB4bD5PWr8/KLLQFq4sVcXQhiTp33p9iKZTr0proo7Vtp79HFn7u48nyKPzdZZKIUeKCsqi+TQNWKCifz34xyYw2zNpgC0BYlXRJ4BRcB7vC2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P7axPdI=
#snyk
- secure: "FX6kiDWQELo076iQDwW5m5zdRQMqV+wYBOcx4B+UwA+PnpmVaSv5FksjF45ruefp26RXLfSaytj0iE70huGqb6e34SyqJndPmrU58kBq6vz00iw94hwZBUmfaibNd0Q7oeRGmmZWwE5oZt2ll8RMzI9K95w+rFeHy9hXlFG2zCFU51RgQsc8pCxYjphbt6ki2kwmvtdBkCuMOckNI5QG/lSU9uiuNjys3/sBLmtq67JZbYNP3RQolm5Y86mvESkvHrEf0afQNFqciJW8TW4sj5J9ZSJXcYh0GWWPr7sId7mqtwyY0ciTbdgwLX0Aa/1D9o2eIIPfL2U5hNrmwP8OULWXQ/9+8p4r5RZqswy6SxtjHfSFFW0CTDgiuYt7c4bj5v5UbekOcrQr6PlF1amI2kFe8V7Q9zzVMjyhIDEV3ndEC2XLQDOppCdnLetAcRuK4j/jGeJp8fyWcIMeJLlB0CZ8tVxgwuDD9R8903TJw0xxETI4cfM1AdZPEXPUod/6htz+N17kaVFmH3Z69mLdIMA4+MbTiVObmefep1s7sxFU/flkQXOV3G5ij/2CkyO3RVlXICXNgOThJ33Sbmftv482cAiW4VHMZPN15AvIiPuDxY0gE5vFcJkqhKXUFw7v+gLSkva0kyv8D6VfcV7cRnZKMvtGlMRr+A5247C/8K4="
cache:
npm: true
directories:
- dist
- reports
- storybook
jobs:
include:
- stage: prepare cache
name: install
before_install:
- rm -rf dist reports storybook
install:
- npm i
- stage: website
name: build
script:
# - echo $TRAVIS_PULL_REQUEST_BRANCH
# - echo $TRAVIS_BRANCH
# - echo $TRAVIS_COMMIT
# - echo $TRAVIS_PULL_REQUEST_SHA
- if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then export PT_BRANCH=$TRAVIS_BRANCH; else export PT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH; fi
- if [ -z "$TRAVIS_PULL_REQUEST_SHA" ]; then export PT_COMMIT=$TRAVIS_COMMIT; else export PT_COMMIT=$TRAVIS_PULL_REQUEST_SHA; fi
# - echo $PT_COMMIT
# - echo $PT_BRANCH
- npm run static --base=/gp-vue-boilerplate/
- npm run packtracker
- stage: storybook
name: build
script:
- npm run storybook:prod
- stage: test
name: cypress
install:
- npm i mocha@5.2.0 mochawesome --no-save
script:
- npm run start:static & npx wait-on http://localhost:8050
- npm run cypress:run -- --record
- kill $(jobs -p) || true
- npx mochawesome-merge --reportDir ./reports/cypress/results > ./reports/cypress/mochawesome.json
- npx mochawesome-report-generator ./reports/cypress/mochawesome.json --reportDir=./reports/ --reportFilename=cypress.html
- stage: deploy
if: branch = master
install:
- npm i semantic-release @semantic-release/exec @semantic-release/git @semantic-release/changelog --no-save
script:
- npx semantic-release --provider=github
- mkdir gh-pages gh-pages/storybook gh-pages/reports
- cp -R dist/* gh-pages/
- cp -R storybook/* gh-pages/storybook/
- cp -R reports/* gh-pages/reports/
- touch gh-pages/.nojekyll
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: gh-pages/
on:
branch: master