forked from cloudfoundry/stratos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (103 loc) · 3.51 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
92
93
94
95
96
97
98
99
100
101
102
103
language: node_js
node_js:
- "12.13.0"
sudo: required
dist: bionic
services:
- docker
addons:
chrome: stable
before_install:
- export DISPLAY=:99.0
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1366x768x24"
- sleep 3
install:
- npm install
- ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts
filter_secrets: false
branches:
only:
- master
- v2-master
- e2e-tests
cache:
directories:
- "$HOME/.npm"
- "$HOME/.cache"
- node_modules
stages:
- Lint
- Build
- Test
jobs:
include:
- stage: Lint
name: Frontend Lint
script:
- npm run lint
- name: Backend Lint
before_script:
- "./deploy/ci/travis/install-go.sh"
- go get -u golang.org/x/lint/golint
script:
- golint src/jetstream/...
- ./deploy/ci/travis/update-go-report-card.sh
- stage: Build
name: Build Frontend and Backend
env:
- CI_ENV=true
script:
- "./deploy/ci/travis/e2e-build-script.sh build"
- stage: Test
name: Frontend Unit Tests
env:
- CI_ENV=true
script:
- npm run test
- npm run codecov
- name: Backend Unit Tests
script:
- "./deploy/ci/travis/run-backend-tests.sh"
after_success:
- npm run codecov-backend
- name: Helm Chart Unit Tests
script:
- "./deploy/ci/travis/helm-chart-unit-tests.sh"
- name: E2E Tests - Long Suites
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh longSuite"
- name: E2E Tests - Long CF Service Suites
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh longServicesSuite"
- name: E2E Tests - Manage Users
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh true"
script:
- "./deploy/ci/travis/job-e2e-script.sh manageUsers"
- name: E2E Tests - Core
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh true"
script:
- "./deploy/ci/travis/job-e2e-script.sh core"
- name: E2E Tests - Autoscaler
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh autoscaler"
- name: E2E Tests - CF Summary and below
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh cfSummaryAndBelow"
- name: E2E Tests - All Other Suite
before_script:
- "./deploy/ci/travis/job-e2e-before_script.sh"
script:
- "./deploy/ci/travis/job-e2e-script.sh fullMinusOtherSuites"
notifications:
slack:
secure: s5SFnFKwzfxLrjGR5lJ2AJG1FSWCKtHdQi8K2Kmx5ZhrYL/7P+KLc/ks18WnzCPoy705LbHCBSULcnWbLjqCpnkKxNjsFAyFl2nZZPxBjl2/mHpulbr3gmultDOrMDbmYL4oWPKBlxKResElz9nQwknlLWZ/L94AIx8zuMfRIWdEt1bJBDAQts4fx2D4cIEx0yZUq7JGAKjSiXKR9eDyMWFb+SWw6mvr5WtFM8uq35rPvRVEfm56LIgSuMUpVeYtnYiY2JP7W8iKX0gD+54wAiSXRZiQVCLJq606/TlJo7j8Na9Dn1Q5XDkX3b3XzcgmEZThoO1GFtv3yNYOVxv+50p2tSnc8CT0VEVOYOGJuz17AESZAYK+AyjEmeZmDiroj1czmIq8/ZYKbmvDYSZgGuDcSkQurX/6BPac6ra69WmSQmwv0tS3A/IzDw7X+CuC+3QubQ7GfaiVe25PUU+tRSEDM4PMUJY8QRF5Q+oeN5NjjWmJBqf/ic2TO2xTU1j+qysdqK34qIV1qyVcPMUIiYW+5ltH71qiy05TSvvfGS+oatRBMzINRl3zl2gOV1CKNU801XehRKCx9XDCw5NL1HSx5HD5psOyBRpAMYYBOqa+rv9VAza9MsfpslCoibg5rdrq4rZqqUgRhayNp/LKzlhe/g62+qbGNT+iFuHtB+Y=