-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (58 loc) · 3.19 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
54
55
56
57
58
language: java
jdk:
- oraclejdk8
install: mvn --version
sudo: false
env:
global:
- APP_NAME=sense-firehose
- BUILD_NUMBER=0.1.$TRAVIS_BUILD_NUMBER
- secure: XTtr3j49AJqxGKzAtwg0l0/s/gMU4tWCWDQt/oIYjXtFSVXOKk1SzM9GhU07UWwI5/UVz3KA4e2KhRprwqm+9bgYznnFG4YyOZvn7RufX4i3zDPZtDw/R+hDOhOEFdTwaF4f3pZHvMEM8ZMFKLq6AAjv/3oEilj/Qk7b+luRlGkuJkz1qJx9zVaimDxGVxDzXM1/Pk0leisXwun3J+19sYtpdueEghDmFo5WhNLdlHRkRZrimxZeARgvsR0MlUrsPzV8AJIDRDWNsHgcSyzDIUPf6l9RjfzW8dqKHRSD8qaFwgq6XvZKhXhESup4FPzR6Za8muhOUJY2b2WKexAoAl+db0J1oa4vk/CoccDgmbJMCyopByNOvAqMg0RSGD13PX7z5BIwgCT27MfVCCwBcPxSNI3oKFyUlDX4p+MdgqqDzBOyQKCYAu8O5633XUc1VaStw2E1ZIWhA26YK7lJaOdGFQbswZso+3RcCRbjvamvF7w0/TbAIKItEo/+mAmnD3rP8v0WdU6wN9rJUbKObcjjhFEGdbBDt7u8UPiSrDRve15b9mr4p7MWFisYyOymI0evze17e2WjbfYP0hwnllh8OcNbI2jR+YEwzT4z/zZwGLF0fS+618GfNlGkVb1Qvn4B180ARNWF+H9khCraSGaYF+ehvZu7ve8M9o8PsXU=
- secure: LlNBb6LVfDlDC+On76SBOChg2GGQiZ751vSHUpdv6t88HH8g6NM12k2vM/KSOCGDGtJE9lK7HMV1p5b5OmlQCE3QcrzJfuh65kycr+1PZosREgszRm5N1YZPj+OZEqWMnt9QQN+qNMydQ62D8nLzTTv6UsYVDFjYP4iaQxCybw9dCE2PaXWyQVIoorO45ccwcl0sjdmi5ATWjcBZKMBrfQr7gboh9fEjoG875FTENVh+wejd69cMnMfdQOBHME4hZKb6yoBh2CbyE7o/HNzzCsd5rtJ9MGHvCpfuZCNzU42CCWl227bBRMxnoYL5qEym+e4HLwWdWCVcquaH+bDTevppNHGmCFSJJ1Zsmsn7xqid/EHF1uMCvUSsVy6lnYgbBSiA+PrPRzNlSaFGeUG7ZJvbsqghS9C9bXwq9HCfA6y59N7Ea/dODlPXfy6IYt68SiV0hiw3/Z3Yw4ABVwgjpK3sTeENYgzsej/iagtYwdaZJGBT5HqCD8YggNvMc2oZKnA1LLTCDR2okZfh+5yubdZp4QiBiwLyeTNCfj58/MrB5Zm6lpsjSfndoKKdGZx5j+RmeWsRh+iyqCzIisn4kFL62O+GFiK6hBPguiMJc7x6SENzGe8e/oMeUsuW77CH+C3+udtudcIlfyghrkk5c96PzTsL9ZogRPfoyWzWXeA=
script:
- echo "MAVEN_OPTS='-Xmx2g -XX:MaxPermSize=512m'" > ~/.mavenrc
- export TEMP_DIR="/tmp/$APP_NAME"
- mkdir -p $TEMP_DIR/opt/hello
- mkdir -p $TEMP_DIR/etc/hello
- mkdir -p $TEMP_DIR/etc/init/
- mkdir deb-pkg
- cp configs/sense/sense-firehose.prod.yml $TEMP_DIR/etc/hello/sense-firehose.yml
- cp configs/messeji/messeji-firehose.prod.yml $TEMP_DIR/etc/hello/messeji-firehose.yml
- cp configs/pill/pill-firehose.prod.yml $TEMP_DIR/etc/hello/pill-firehose.yml
- cp init/*.conf $TEMP_DIR/etc/init/
- mvn versions:set -DnewVersion=$BUILD_NUMBER
- mvn versions:commit
- mvn --settings settings.xml clean package
before_deploy:
- mvn clean
- mvn versions:set -DnewVersion=$BUILD_NUMBER
- mvn versions:commit
- mvn --settings settings.xml -DskipITs deploy
- gem install fpm
- cp target/$APP_NAME-$BUILD_NUMBER.jar $TEMP_DIR/opt/hello/$APP_NAME.jar
- fpm --force -s dir -C $TEMP_DIR -t deb --name "$APP_NAME" --version $BUILD_NUMBER --config-files etc/hello .
- cp ${APP_NAME}_${BUILD_NUMBER}_amd64.deb configs/
after_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=$APP_NAME-$TRAVIS_BRANCH-$BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER"
- git push --quiet [email protected]:hello/suripu-firehose.git --tags
deploy:
- provider: s3
access_key_id: $CI_DEPLOY_USERNAME
secret_access_key: $CI_DEPLOY_PASSWORD
bucket: hello-deploy
skip_cleanup: true
local_dir: configs
upload-dir: packages/com/hello/suripu/$APP_NAME/$BUILD_NUMBER
region: us-east-1
on:
tags: false
branch: master
branches:
only:
- master
notifications:
email: