-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 924 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
language: node_js
os: linux
node_js:
- "10"
jobs:
include:
- stage: "test"
name: "Run unit test"
before_script:
- npm install
- npm install --save-dev mocha chai
script: npm test
- stage: "build"
name: "Push to docker hub"
services:
- docker
script:
- dockerpass=`echo $DOCKER_PASSWORD | base64 -d`
- dockeruser=`echo $DOCKER_USERNAME | base64 -d`
- echo "$dockerpass" | docker login -u "$dockeruser" --password-stdin
- docker build -t luanngominh/frontend-ci .
- docker push luanngominh/frontend-ci
if: branch = master
- stage: "deploy"
name: "Deploy app to kube"
script: echo meowmeow
if: branch = master
notifications:
email:
recipients:
- luannm@dwarvesv.com
on_success: always
on_failure: always