forked from yavin-dev/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screwdriver.yaml
106 lines (100 loc) · 3.9 KB
/
screwdriver.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
cache:
pipeline: [~/.npm]
shared:
image: maven:3.6.3-jdk-8
environment:
NODE_VERSION: 12.16.0
JOBS: 4
jobs:
main:
annotations:
screwdriver.cd/ram: TURBO
screwdriver.cd/cpu: TURBO
steps:
- install-node: |
sd-cmd exec screwdriver/install-nodejs@latest $NODE_VERSION
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use node
- install-chrome: ./build-scripts/setup-chrome.sh
- install: npm ci --unsafe-perm
# TODO add lint meta https://docs.screwdriver.cd/user-guide/metadata#additional-pull-request-checks
- lint: npx lerna run lint --stream;
- test-navi-admin: npx lerna run test --scope navi-admin --stream;
- test-navi-app: npx lerna run test --scope navi-app --stream;
- test-navi-core: npx lerna run test --scope navi-core --stream;
- test-navi-dashboards: npx lerna run test --scope navi-dashboards --stream;
- test-navi-data: npx lerna run test --scope navi-data --stream;
- test-navi-directory: npx lerna run test --scope navi-directory --stream;
- test-navi-notifications: npx lerna run test --scope navi-notifications --stream;
- test-navi-reports: npx lerna run test --scope navi-reports --stream;
- test-navi-search: npx lerna run test --scope navi-search --stream;
- test-navi-webservice: cd packages/webservice && ./gradlew check && cd -;
requires:
- ~pr
- ~commit
alpha-main:
annotations:
screwdriver.cd/ram: TURBO
screwdriver.cd/cpu: TURBO
steps:
- install-node: |
sd-cmd exec screwdriver/install-nodejs@latest $NODE_VERSION
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use node
- install-chrome: ./build-scripts/setup-chrome.sh
- install: npm ci
- test-navi-admin: npx lerna run test --scope navi-admin --stream;
- test-navi-app: npx lerna run test --scope navi-app --stream;
- test-navi-core: npx lerna run test --scope navi-core --stream;
- test-navi-dashboards: npx lerna run test --scope navi-dashboards --stream;
- test-navi-data: npx lerna run test --scope navi-data --stream;
- test-navi-directory: npx lerna run test --scope navi-directory --stream;
- test-navi-notifications: npx lerna run test --scope navi-notifications --stream;
- test-navi-reports: npx lerna run test --scope navi-reports --stream;
- test-navi-search: npx lerna run test --scope navi-search --stream;
- test-navi-webservice: cd packages/webservice && ./gradlew check && cd -;
requires:
- ~commit:0.2.x-alpha
- ~pr:0.2.x-alpha
publish-npm:
requires:
- ~main
- ~alpha-main
environment:
GIT_SHALLOW_CLONE: false
steps:
- install-node: |
sd-cmd exec screwdriver/install-nodejs@latest $NODE_VERSION
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use node
- install: npm ci --unsafe-perm
- publish: ./scripts/npm-publish.sh
secrets:
- NPM_TOKEN
publish-artifactory:
requires:
- ~main
- ~alpha-main
steps:
- publish: ./scripts/artifactory-publish.sh
secrets:
- ARTIFACTORY_USER
- ARTIFACTORY_KEY
gh-pages:
requires: main
annotations:
screwdriver.cd/ram: TURBO
screwdriver.cd/cpu: TURBO
environment:
BUILD_NAVI_DEMO: true
steps:
- install-node: |
sd-cmd exec screwdriver/install-nodejs@latest $NODE_VERSION
export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm use node
- install: npm ci --unsafe-perm
- setup-ci: git clone https://github.com/screwdriver-cd/toolbox.git /tmp/ci
- build-pages: |
cd packages/app
npx ember github-pages:commit --message "Deploy gh-pages from $SD_BUILD_SHA" --destination ../../
- deploy: |
. /tmp/ci/git-ssh.sh
git push origin gh-pages:gh-pages
secrets:
- GIT_KEY_BASE64