-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (42 loc) · 952 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
49
50
51
52
53
54
# sudo: required
language: node_js
node_js:
- "node"
# services:
# - docker
cache:
- bundler
- yarn
notifications:
email:
on_failure: never
# env:
# - DOCKER_COMPOSE_VERSION=1.20.1
# # - DOCKER_COMPOSE_VERSION=1.4.2
stages:
- name: Unit Tests Prod
if: branch = master
- name: Unit Tests
if: branch = stage
- name: Deployment to Prod
if: branch = master
- name: Deployment to qa
if: branch = stage
jobs:
include:
- stage: Unit Tests Prod
script: bash .travis/test.sh
- stage: Unit Tests
env:
- API_URL=$API_URL_STAGE
script: bash .travis/test.sh
# - script: sh .travis/test.sh
# name: "Integration Tests"
- stage: Deployment to Prod
script: bash deployments/prod.sh
after_success:
- bash deployments/.travis-push.sh
- stage: Deployment to qa
env:
- API_URL=$API_URL_STAGE
script: bash deployments/qa.sh