forked from esaude/esaude-emr-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·36 lines (36 loc) · 993 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
language: node_js
node_js:
- "4.0.0"
addons:
apt:
packages:
- sshpass
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- npm install -g bower grunt-cli codacy-coverage coveralls
- bower install --force-latest
after_script:
- cat coverage/**/lcov.info | codacy-coverage
- cat coverage/**/lcov.info | coveralls
before_deploy:
- grunt build:package
- sed -i "s/__RELEASE_VERSION__/$TRAVIS_TAG/g" bintray-release.json
deploy:
- provider: bintray
file: "bintray.json"
user: "psbrandt"
key: $BINTRAY_API_KEY
dry-run: false
on:
branch: master
- provider: bintray
file: "bintray-release.json"
user: "psbrandt"
key: $BINTRAY_API_KEY
dry-run: false
on:
tags: true
after_deploy:
- sshpass -p$TRAVIS_USER_PASSWORD ssh -o StrictHostKeyChecking=no [email protected] 'curl -sL https://raw.githubusercontent.com/esaude/esaude-poc-docker/master/scripts/dev-server-deploy.sh | bash'