This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path.travis.yml
84 lines (76 loc) · 2.34 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
language: node_js
node_js:
- "10.16"
- node
stages:
- test
- name: 🚀 rc-deployment
if: branch =~ /^(release-yoast-seo|release)\/*/
- name: 🚀 deployment
if: branch = master
jobs:
allow_failures:
- node_js: node
include:
- stage: 🚀 rc-deployment
node_js: "10.16"
name: "Deploy to the npm rc channel"
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn lerna-publish-rc
on:
# Branch condition is in the stages configuration
all_branches: true
- stage: 🚀 deployment
node_js: "10.16"
name: "Deploy to the npm latest channel"
script: skip
deploy:
skip_cleanup: true
provider: script
script: yarn lerna-publish
on:
# Branch condition is in the stages configuration
all_branches: true
cache:
yarn: true
directories:
- node_modules
- apps/content-analysis/node_modules
- apps/components/node_modules
- packages/analysis-report/node_modules
- packages/browserlist-config/node_modules
- packages/components/node_modules
- packages/configuration-wizard/node_modules
- packages/eslint/node_modules
- packages/feature-flag/node_modules
- packages/helpers/node_modules
- packages/replacement-variable-editor/node_modules
- packages/search-metadata-previews/node_modules
- packages/social-metadata-forms/node_modules
- packages/social-metadata-previews/node_modules
- packages/style-guide/node_modules
- packages/yoast-components/node_modules
- packages/yoast-social-previews/node_modules
- packages/yoastseo/node_modules
- $HOME/.yarn
before_install:
- export PATH=$HOME/.yarn/bin:$PATH
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- echo -e "machine github.com\n login $CI_GITHUB_USER_TOKEN" > ~/.netrc
install:
- yarn --ignore-optional
- yarn install-ci
script:
- yarn lint
- yarn test -- -- --coverage
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${CI_NPM_YOASTBOT_TOKEN}" > .npmrc
#after_success:
#- yarn global add codeclimate-test-reporter
#- codeclimate-test-reporter < coverage/lcov.info
#notifications:
# slack:
# secure: W3StABr+AdcdQawTObK4nbsnn5nLrTTtZfVpD/GEN6gvSOQcykbGEC5+ceYg0jn5b4StDyCiTo5blEsrpVICFpYKc44+ogah+qaGRUfVRS/rpOvn4AueXTWn4JxhZzuxqKMiTmyW+MQG0uYM7sk7Q5S+15jj6ilkj4QATaBVNbY=