forked from cBioPortal/cbioportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.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
sudo: false
language: java
jdk: openjdk7
cache:
directories:
- $HOME/.m2
- $HOME/maven
env:
- MAVEN_VERSION=3.3.3
install:
- mkdir -p ~/maven
- |
test -d ~/maven/$MAVEN_VERSION/bin || { \
find ~/maven -mindepth 1 -delete && \
mkdir -p ~/maven/$MAVEN_VERSION && \
wget -O - http://www.eu.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 -; }
before_script:
- mkdir -p ~/.m2
- cp .travis/settings.xml ~/.m2
- mysql --user travis --password= <<< 'CREATE DATABASE cgds_test'
- cp src/main/resources/spring.security.url.intercepts .travis/src/main/resources
script:
- export PORTAL_HOME=$(pwd)
- cp $PORTAL_HOME/src/main/resources/portal.properties.EXAMPLE $PORTAL_HOME/src/main/resources/portal.properties
- cp $PORTAL_HOME/src/main/resources/log4j.properties.EXAMPLE $PORTAL_HOME/src/main/resources/log4j.properties
- ~/maven/$MAVEN_VERSION/bin/mvn -e -DPORTAL_HOME=$PORTAL_HOME -Ddb.user=travis -Ddb.password= clean install
notifications:
slack: cbioportal:S2qVTFTFMtizONhCOe8BYxS6