-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·58 lines (58 loc) · 1.91 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
language: node_js
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
node_js:
- '4.2.2'
branches:
only:
- api/master
- api/staging
- api/development
cache:
directories:
- node_modules
env:
global:
- BRANCHING_MODEL=API_APP
- PACKAGE_NAME=waivecar
- REMOTE_USER=travis
- COVERAGE_TOKEN=Prejal3413sfJsad43jadasd431
- INIT_SCRIPT=/etc/init.d/node-${PACKAGE_NAME}
- SOCKET_SCRIPT=/etc/init.d/node-${PACKAGE_NAME}-socket
- STRICT_VERSION_CHECK=false
- REMOTE_DIR_WEB=/opt/${PACKAGE_NAME}-web
- REMOTE_DIR_APP=/opt/${PACKAGE_NAME}-admin
- REMOTE_DIR_API=/opt/${PACKAGE_NAME}-api
- REMOTE_HOST_DEV=${PACKAGE_NAME}-dev.cleverbuild.biz
- REMOTE_HOST_STAG=${PACKAGE_NAME}-stag.cleverbuild.biz
- REMOTE_HOST_PROD=${PACKAGE_NAME}-prod.cleverbuild.biz
- SCR=deployment/build/scripts
services:
- redis-server
- mongodb
before_install:
- npm install -g node-gyp [email protected]
- rm -rf ~/.node-gyp/
- curl 'http://cistats.clevertech.biz/logstat/?&project=Waivecar&type=3'
- deployment/build/scripts/trigger_coverage
- openssl aes-256-cbc -K $encrypted_e155dc6b3053_key -iv $encrypted_e155dc6b3053_iv
-in deployment/build/ssh/id_rsa.enc -out deployment/build/ssh/id_rsa -d
- chmod 400 deployment/build/ssh/id_rsa
install:
- $SCR/commit_dependencies
- bento package
script:
- $SCR/commit_build && $SCR/commit_analysis && $SCR/commit_test && $SCR/commit_package
--name ${PACKAGE_NAME} --commit ${TRAVIS_COMMIT} && $SCR/deploy
notifications:
slack:
secure: cSyGb0+qd+MpHSf3tPr546dLaKkeZx0S5sbkr1eJxr45fKIDNO+bO5bYJezGlozoFZXHq/9HXKL+uoRTfF2uLpVmMVFjAeKs/UHcdnLjGlKQ3M0APLSM3iK0D3aYQ19u0FJ8aNaV/2Jv+gl0QIL6TV5jb2QBji1rDMZsjeNHE68=
after_success:
- curl 'http://cistats.clevertech.biz/logstat/?&project=Waivecar&type=2'
after_failure:
- curl 'http://cistats.clevertech.biz/logstat/?&project=Waivecar&type=2'