forked from KennyTw/ITHomeFEDevops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 809 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
language: node_js
node_js:
- '0.10'
services:
- redis-server
cache:
directories:
- $GEM_HOME
- node_modules
branches:
only:
- master
- dev
install:
- rvm 1.9.3 do gem install dpl
before_install:
- npm install -g grunt-cli
- npm install -g [email protected]
- npm install -g azure-cli
- npm install
- node travis_ini.js
before_script:
- chmod -R 777 ./travis_notify.sh
- chmod -R 777 ./travis_grunt.sh
- chmod -R 777 ./travis_azure.sh
- chmod -R 777 ./app
- bower install
- ./travis_grunt.sh
- ./app stop
after_success:
- sudo rm -rf ./node_modules/*
- sudo rm -rf ./.git/*
- sudo rm -rf ./node_modules/.bin
- rm *.log
- sudo rm -rf ./bower_components/backbone/*
- sudo rm -rf ./bower_components/jquery/*
- ./travis_azure.sh
- ./travis_notify.sh