-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
41 lines (39 loc) · 1007 Bytes
/
.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
language: node_js
node_js: "12.0.0"
cache: npm
env:
- NODE_ENV=travis
jobs:
include:
- stage: "Tests"
name: "Unit Tests"
script: jest
- script: npm run lint
name: "Lint"
- script: npm run test:e2e
name: "Integration Tests"
services:
- mongodb
before_script: mongo shassi_ci --eval 'db.createUser({user:"admin", pwd:"admin", roles:["readWrite"]});'
- stage: "Code Quality"
name: "Sonarcloud"
script:
- npm run test:cov
- sonar-scanner
addons:
sonarcloud:
organization: "kiwikern-github"
token: $SONAR_TOKEN
- script: jest --coverage --coverageReporters=text-lcov | coveralls
name: "Coveralls"
- stage: "Deployment"
name: "Deployment"
before_install: echo 'Skip...'
install: echo 'Skip...'
script: echo 'Deploying...'
deploy:
provider: heroku
api_key: $HEROKU_API_KEY
app: shassi
on:
tags: true