forked from PaloAltoNetworks/minemeld-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.14 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
language: c
sudo: required
dist: trusty
addons:
apt:
packages:
- libsnappy1
- libsnappy-dev
- libleveldb-dev
- librrd-dev
- libxslt1-dev
- libssl-dev
- libffi-dev
- libc-ares-dev
- libc-ares2
before_install:
- sudo apt-get -y install python2.7/trusty python2.7-dev/trusty python2.7-minimal/trusty libpython2.7/trusty libpython2.7-dev/trusty libpython2.7-minimal/trusty libpython2.7-stdlib/trusty
- export PATH=/usr/bin:$PATH
install:
- sudo -H pip install --upgrade pip
- sudo -H pip install -r requirements-dev.txt
script:
- /usr/bin/env python -V
- platter build -r requirements-web.txt --prebuild-script scripts/prebuild-script.sh
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-core-$TRAVIS_TAG-linux-x86_64.tar.gz"
- "export MD5SUM=$(md5sum dist/$FILENAME | awk '{ print $1 }')"
- "export SHA256SUM=$(sha256sum dist/$FILENAME | awk '{ print $1 }')"
- "echo $MD5SUM"
- "echo $SHA256SUM"