forked from fcrepo/fcrepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
67 lines (58 loc) · 1.92 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
jobs:
include:
- os: linux
language: java
dist: trusty
sudo: true
jdk: openjdk11
- os: windows
language: shell
env:
- MAVEN_VERSION=3.6.3
before_install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then
choco install openjdk11 --version 11.0.5.10;
export JAVA_HOME='/c/Program Files/OpenJDK/openjdk-11.0.5_10'
export PATH="${PATH}:${JAVA_HOME}/bin";
choco install maven --version ${MAVEN_VERSION};
export PATH="${PATH}:/c/ProgramData/chocolatey/lib/maven/apache-maven-3.6.3/bin";
fi;
- "echo $PATH"
- "export JAVA_OPTS=-Xmx512m"
- "mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=${MAVEN_VERSION}"
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -z "$GPG_SECRET_KEYS" ] [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; fi
# Default installation command is
# mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
# this is what we test as our build phase so skip it here.
install:
- true
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo service mysql stop;
sudo service postgresql stop;
sudo service acpid stop;
sudo service atd stop;
sudo service cron stop;
sudo service memcached stop;
sudo service ntp stop;
sudo service rabbitmq-server stop;
sudo service resolvconf stop;
sudo service sshguard stop;
sudo service ssh stop;
fi
script:
- ./mvnw --settings .travis/settings.xml -Dgpg.skip -Dfcrepo.streaming.parallel=true install -B -V
deploy:
-
provider: script
script: .travis/deploy.sh
skip_cleanup: true
on:
repo: fcrepo4/fcrepo4
branch: master
condition: $TRAVIS_OS_NAME = linux
notifications:
irc: "irc.freenode.org#fcrepo"
email: