forked from p6spy/p6spy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 1.63 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
language: java
jdk:
- oraclejdk7
- openjdk7
- oraclejdk8
env:
global:
- LD_LIBRARY_PATH=/home/db2inst1/sqllib/lib64/
before_install:
- mvn -version
- script/travis/before_install_apt-fast.sh
- sudo apt-fast update -qq -y
- script/travis/before_install_firebird.sh
#- script/travis/before_install_db2.sh
- script/travis/before_install_oracle.sh
- groovy script/travis/generateMavenSettings.groovy
- sudo hostname "$(hostname | cut -c1-63)" && sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts # https://github.com/travis-ci/travis-ci/issues/5227
before_script:
- script/travis/before_script_firebird.sh
- script/travis/before_script_mysql.sh
- script/travis/before_script_postgres.sh
#- script/travis/before_script_db2.sh
- script/travis/before_script_oracle.sh
install:
- mvn -q -B dependency:resolve-plugins --settings ~/.m2/p6spySettings.xml
- mvn -q -B dependency:resolve --settings ~/.m2/p6spySettings.xml
script:
# - if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_JDK_VERSION == "oraclejdk7" ]]; then mvn -B test site:site site:stage com.github.github:site-maven-plugin:site -P travis -Dmaven.test.failure.ignore=true --settings ~/.m2/p6spySettings.xml; else mvn -B test -P travis --settings ~/.m2/p6spySettings.xml; fi;
- mvn -B test -P travis --settings ~/.m2/p6spySettings.xml;
after_success:
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_JDK_VERSION == "oraclejdk7" ]]; then mvn -B deploy -DskipTests --settings ~/.m2/p6spySettings.xml; fi
notifications:
email: