forked from PaloAltoNetworks/minemeld-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 872 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
language: node_js
node_js:
- "4.2"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
- CXX=g++-4.8
before_script:
- "export PATH=$(npm bin):$PATH"
- bower install --strict-shrinkwrap
- typings install
- nsp check
script:
- gulp build
before_deploy:
- cd dist
- tar --remove-files -cvzf minemeld-webui-$TRAVIS_TAG.tar.gz *
- cd ..
- ls dist
deploy:
provider: s3
access_key_id: "$S3_ACCESS_KEY"
secret_access_key: "$S3_SECRET_ACCESS_KEY"
bucket: "minemeld"
skip_cleanup: true
local_dir: dist
acl: public_read
on:
tags: true
after_deploy:
- "export FILENAME=minemeld-webui-$TRAVIS_TAG.tar.gz"
- "export MD5SUM=$(md5sum dist/$FILENAME | awk '{ print $1 }')"
- "export SHA256SUM=$(sha256sum dist/$FILENAME | awk '{ print $1 }')"
- "echo $MD5SUM"
- "echo $SHA256SUM"