forked from nestjs/terminus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (37 loc) · 791 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
41
42
43
44
45
46
47
48
language: node_js
services:
- docker
cache:
directories:
- "node_modules"
node_js:
- "10"
env:
global:
- "GH_REF=github.com/BrunnerLivio/nest-terminus.git"
before_install:
- npm i -g npm@latest
install:
- npm install
jobs:
include:
- stage: "Testing"
script: sudo service mysql stop && docker-compose build && docker-compose run lib
- stage: "Testing"
script: npm run test:ut
deploy:
- provider: script
# Have to use `&&` because of issue https://github.com/travis-ci/dpl/issues/673
script: npm run doc && bash ./bin/deploy-gh-pages.sh
skip_cleanup: true
on:
branch: master
node_js: "10"
- provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
on:
branch: master
node_js: "10"
tags: true
tag: beta