Skip to content

Commit

Permalink
Merge pull request #64 from inodb/travis-ci
Browse files Browse the repository at this point in the history
Add travis & docker auto push image
  • Loading branch information
inodb authored Mar 20, 2017
2 parents 374d049 + eeaa312 commit a319985
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
language: java
jdk: oraclejdk8
services:
- docker
cache:
directories:
- $HOME/.m2
- $HOME/maven
env:
global:
- MAVEN_VERSION=3.3.9
- secure: "enwFCLCFWnYpfMwaaQT7EXnda6VHZxhHBKHHnFF4bO0TrVUZj2DmkMJAzumCstSo3li9Q0CNIUyTj6+9HnEleOn6zYb0opzS5rsjXXoUKPi8sOGgbTLqIb3cKjGy4244eb9jBsmmlFrRk1u6QDBSx+3KbQ132m8cbGj7BuCfvj9htlVW3gYk0vZ5S8uklfTqyjDY8kmfSty/K3ONeyEROH1Psz/FE9GS4tjT4BmFN0WDVLrFu8zYxTH3hFXOir2tRYbSeHPinpnEDD6EkcnaA/tiGJRGQ5Y/c2iAKKohntTHjo7hCh79YamChGfazQztjHetdv1iGpXFv2YbqLw4ti2sFPltJescSo1kIH78WJZlbX4E57VT17LS0yqC7XlfPaobDe0rh5K9gWL+bIT8ryaKa9T0EsYzPowndtOfsV8c7Po/B2PAQJn1/Y6jGtBlrKu5EStXd+QjIdR5WIulOMZq1IwfudRsGv77hdFC2+UR/MXIl3RElukspnhJUG8H/YzYnKpCZXL6CTte2zJbTiZAXg0VpGc0ODH7iFH+WFJqSHyeXiyfB7ElXmjRgjITG26wxjMQKaXsfT9Qc4l9kmDKAuSBTmLX/URF41KLMWzSjnOCS7ySerUOKc6YaiwFGtoPC2rO4R/NqOQOZMn/OZ2/uvO8BRrFTW8T5+HOAjk="
- secure: "kLmDVmj68iqZQ/RfqwY8HU7IjPZFuXR4l19UNZYCavtocso/MuJYIOoJmg6D3uQE7M4A08kUgcsp+RhkVHqwBQqD1FnftXnm59fXHlrHzy6JIoN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imsRR6MtoY9DiBZpxzUEIyw0yqLs6T74HVv4FPS9qkjeMtMb3UvBcH4w1IbSfUZ76YKXoePO4NQBM3DofILrdUtuMDG1fmmNim1joC3MEsCldInnNzthjss7tciYvC9zzI4v3Nb11G6psKZoYVPIMKCla6RRKhWQ="
install:
# install maven
- |
mkdir -p ~/maven
test -d ~/maven/$MAVEN_VERSION/bin || { \
find ~/maven -mindepth 1 -delete && \
mkdir -p ~/maven/$MAVEN_VERSION && \
wget -O - http://www-us.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz | \
tar -C ~/maven/$MAVEN_VERSION --strip-components=1 -xzf -; }
script:
- mvn -PproductionPublic,jarSingle,docker -DskipTests clean install
- mvn -PproductionPublic,jar3d,docker -DskipTests clean install
after_success:
- |
if [[ "$TRAVIS_TAG" ]]
then
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && \
docker push cbioportal/cancerhotspots
docker push cbioportal/3dhotspots
fi

0 comments on commit a319985

Please sign in to comment.