forked from rundeck/rundeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (38 loc) · 1.16 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
language: java
env: MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=192m" GRADLE_OPTS="-Xmx1024m -XX:MaxPermSize=192m" TERM="dumb"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
#sudo: false
# can uncomment above after resolution of https://github.com/travis-ci/travis-ci/issues/3120
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y xmlstarlet jq
- sudo chsh --shell $(which bash)
- hostname #workaround for https://github.com/travis-ci/travis-ci/issues/5227
- cat /etc/hosts # optionally check the content *before*
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- hostname
- cat /etc/hosts # optionally check the content *after*
script:
- './gradlew clean build && groovy testbuild.groovy -gradle && make TAG=SNAPSHOT BUILD_NUM=$TRAVIS_BUILD_NUMBER rpm deb && bash run-api-tests.sh'
addons:
apt:
packages:
- groovy
- rpm
- make
- zip
- unzip
#- xmlstarlet #once added to whitelist
#- jq #once added to whitelist
# whitelist
branches:
only:
- master
notifications:
irc:
- "irc.freenode.org#rundeck"
#email: false