-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
53 lines (53 loc) · 3.22 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
sudo: false
language: node_js
node_js:
- '0.12'
branches:
only:
- master
- develop
cache:
directories:
- node_modules
- client/node_modules
- client/bower_components
- server/node_modules
services:
- mongodb
before_script:
- npm install -g bower
- npm install -g grunt-cli
- npm install -g mocha
- npm install -g should
- npm install -g istanbul
- npm install -g codeclimate-test-reporter
- cd client
- npm install
- bower install
- cd ../server
- mv config-sample.js config.js
- npm install
script:
- cd ../client
- npm test
- cd ../server
- npm test
- cd ../
notifications:
slack:
secure: D1GQKIasEMUds0m8aesbELb6fxOGPlG05+4GknDXD93TF5GMPu2jKJF83ahlQvyCKq+9wHzus8XwBPG/vARFyaZUOHnvjcA19ZD0O7VWQkmwzhT25awT5IenQohhhjdZOlTpcQgeL+kne4xcAoGkDBVi7EDZvXlJU13gyAcXRIbLlXn47C/vec6aGQbJQtq4bkaw+9yLlxaqtLT1O8wzaVf0NEkE2JTAA6AIB1cVxpOMuhmzkuq3909KOUyylIGE5rl35nuALC462JVW81J6NQKk8bDn/DMN8bsk5KGV7/ZaZjGWq0TZ2cK9eGgZGQt5jcM1guF66Y1pifZ8O6WIQPrQZpEb19pC9qSmXAnyFnQ/hbPnOVxGSIfCudehM9AreiAIR8Ze8ojr3sOrrYa1O57AXKAVz3IGKF8qv+qNgGsrrQP/dtGUAdqbKSzbO2CGi7lZqhQfjI+TgBix9LoJ/PQDW0GV+9cVSi0kdYvRZaJx9pByC+xYIsM5GRKRHFGYC9G0s7TRlHiYoufPqXbmn1xuealXNNtAZ5lRbZV/DJWe1M67MS63XXxxU0W55uh0N06vOLYmbtQbcbcfn7FbuEwgeaV0ShIu0MBMFb5e4LaEROI9pSc22UTFIs6Sra6h9unsyhjje/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imFSQEfxqhtV5hIek1RpdWhkEuV2aBrnH0UXJCAelcHSyaelFJQCEIon2PZbMQa5fnmKbsA9j/0pBTZACRzBkLn1fyEguiq78brDUZAE8MiBEX3begwvefqST2sQiimjNcql9shNBaWZvcA+OLqaoAwulwL19gUtEAwMATREbuEYihkPwN17SBKBTM8cMIFlM2dTj87hRtFxi46WlbJO2hoVwmQoPjiuCd0S9sygglQvZXtJnmNZrJ0fEUMaVeIPzDbz/mopcpW/LRLF6pWLU6Kxyiorji7ljAmbs6hL+iDUwP2PfqB2k7lCC9H0hihuFVJ0jFr1lVyE=
after_success:
- cd client
- grunt lcovMerge
- sed -i -e 's/^SF:\.\/app\/\(.*\)$/SF:client\/app\/\1/g' ./coverage/lcov-merge.info
- sed -i -e 's/^SF:.*\/server\/\(.*\)$/SF:server\/\1/g' ./coverage/lcov-merge.info
- cd ..
- codeclimate-test-reporter < ./client/coverage/lcov-merge.info
- curl -X POST -d "api_key=$DRE_DEPLOY_KEY" -d "branch=$TRAVIS_BRANCH" -d "pull_request=$TRAVIS_PULL_REQUEST"
https://dre.540.co/docker/deploy.php
- curl -X POST -d "api_key=$DRE_DEPLOY_KEY" -d "branch=$TRAVIS_BRANCH" -d "pull_request=$TRAVIS_PULL_REQUEST"
https://dre-dev.540.co/docker/deploy.php