forked from jamshedmelik/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.77 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
sudo: false
cache:
directories:
- $HOME/.m2/repository
- $HOME/.sbt
- $HOME/.ivy2
language: scala
scala:
- 2.10.6
jdk:
- oraclejdk7
sbt_args: -no-colors -J-Xss2m
script: sbt -Dsbt.log.noformat=true +test
notifications:
email:
webhooks:
urls:
- https://webhooks.gitter.im/e/b03547551c9f369a6d51
on_success: change
on_failure: always
on_start: never
before_install:
- |
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
openssl aes-256-cbc -K $encrypted_eb2e0c1b1c49_key -iv $encrypted_eb2e0c1b1c49_iv -in secring.asc.enc -out secring.asc -d
openssl aes-256-cbc -K $encrypted_eb2e0c1b1c49_key -iv $encrypted_eb2e0c1b1c49_iv -in pubring.asc.enc -out pubring.asc -d
fi
after_success:
- |
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
sbt 'set pgpPassphrase := Some(System.getenv("PGP_PASSPHRASE").toCharArray)' 'set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USERNAME"), System.getenv("SONATYPE_PASSWORD"))' +publishSigned sonatypeReleaseAll
rm -f secring.asc pubring.asc
fi
env:
global:
- secure: P0hN/qmlzFkcVZ63zQHQymkFpcIpaWCGs7vbXiVHyvc5xqswtCQuy1C2jQDQc2r9J4/VkUgbXNAIYAraRmyGix7+27f314Nuk44k5s7xsuXvs3NN3RqK0r6Mkirn4oV/ZOhiHUseFWw3KP91ifFUUbE0b1f+xOtRN8uPhT4It8k=
- secure: b/XcN+JB6b+ajlIjnRGGFzArJRTKXkxuUE+NjUOLsjd9O9EP3Ap4E3PObYW5iUd+8AE2nBwql8BJYFgLJv1xvy0r+jbtRCL15pmeQtcNyfPVSWsZlpJIF1DNeRF+TzMTpYSbldMQM4YyQVv8/gzkEZ3MQ8+tWNXCFPa35VP6bUY=
- secure: GDEME7KE6jFcp6Ktv5gJY0rUbDVzz7uV5JhR2hk+aBy1F0HnWDLXk5d/6an4RjIJ2cOGcPs8YEApo6viuc12dHcwhFTRWQH1DZqUI9F1mi1TZ4HGHQclpGhJud2Jr0Inwcm2D8lhe7FHbspAzeVkUBRhW7qiNsM9iQfgZ8qZQAE=