-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
71 lines (58 loc) · 1.54 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
language: node_js
node_js: 14
_manage-job: &manage-job
language: node_js
node_js: "10.13"
env: [ENVIRONMENT=production]
before_install: cd manage
_monorepo-job: &monorepo-job
env: [ENVIRONMENT=production]
before_install: cd monorepo
_npx-job: &npx-job
install: skip
env: [ENVIRONMENT=production]
stages:
- name: test
- name: production-started
if: tag =~ /^v\d+\.\d+\.\d+$/
- name: production
if: tag =~ /^v\d+\.\d+\.\d+$/
- name: production-finished
if: tag =~ /^v\d+\.\d+\.\d+$/
jobs:
include:
- <<: *manage-job
stage: test
name: Test manage
- <<: *monorepo-job
stage: test
name: Test monorepo
- <<: *npx-job
stage: production-started
name: Deployment Started
script: npx @base-cms/website-deployment-tool notify-started
#############################
# vvv ADD SERVICES HERE vvv #
#############################
- <<: *manage-job
stage: production
name: Build manage
install: skip
script: scripts/deploy.js
- <<: *monorepo-job
stage: production
name: Build exports
install: skip
script: scripts/deploy.js exports
- <<: *monorepo-job
stage: production
name: Build server
install: skip
script: scripts/deploy.js server
#############################
# ^^^ ADD SERVICES HERE ^^^ #
#############################
- <<: *npx-job
stage: production-finished
name: Deployment Finished
script: npx @base-cms/website-deployment-tool notify-finished