Skip to content

Commit

Permalink
Merge pull request #316 from sialcasa/315_travis_build
Browse files Browse the repository at this point in the history
315 travis build
  • Loading branch information
manuel-mauky committed Nov 3, 2015
2 parents b357f42 + 7670bd1 commit 1b013d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
language: java

sudo: required
sudo: false

jdk:
- oraclejdk8

install: true

addons:
apt:
packages:
- oracle-java8-installer

before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update && sudo apt-get install oracle-java8-installer
- java -version

env:
Expand All @@ -19,4 +23,5 @@ env:
- secure: Bm0zIwBo4saIBlfr9YDvNqd8UN50FeT2hZyum3RFDmJqaXiUqwxw7sCz/lRjUwTfQrvGJXQ1I8le7zE4OVQdvpn4/LwwTJIjLY2jZNjzs4mZhkHzsM5IcGcL3lukR6soVYrGloQwmw63Okw2kZxces+1fveisPIKDlVaU1RTtMQ=

after_success:
- "[[ $TRAVIS_BRANCH == \"develop\" || $TRAVIS_BRANCH == \"release\"]] && { python addServer.py; mvn clean deploy -pl 'mvvmfx,mvvmfx-cdi,mvvmfx-guice,mvvmfx-archetype' -am -DskipTests=true --settings ~/.m2/mySettings.xml; };"
- chmod ugo+x travis_snapshot_release.sh
- ./travis_snapshot_release.sh
10 changes: 10 additions & 0 deletions travis_snapshot_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -ev

BRANCH=${TRAVIS_BRANCH}

if [ "$BRANCH" = "develop" ] || [ "$BRANCH" = "release" ]
then
python addServer.py
mvn clean deploy -pl 'mvvmfx,mvvmfx-cdi,mvvmfx-guice,mvvmfx-archetype' -am -DskipTests=true --settings ~/.m2/mySettings.xml
fi

0 comments on commit 1b013d5

Please sign in to comment.