forked from MyCoRe-Org/mycore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (46 loc) · 2.07 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
language: java
dist: xenial
jdk:
- openjdk11
install: true
addons:
firefox: "latest-esr"
apt:
packages:
- google-chrome-stable
cache:
directories:
- $HOME/.m2/repository
- geckodriver
env:
global:
- MAVEN_OPTS="-Xmx1024M -Xss128M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
- GECKODRIVER_VERSION="0.20.1"
- CHROMEDRIVER_VERSION=$(curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
- FIREFOX_BIN=$(which firefox)
- SELENIUM_BROWSER=firefox
before_install:
# geckodriver
- |
export PATH=$PWD/geckodriver/${GECKODRIVER_VERSION}:$PATH && \
if ! type geckodriver/${GECKODRIVER_VERSION} > /dev/null 2>&1; then \
rm -rf geckodriver && \
mkdir -p geckodriver/${GECKODRIVER_VERSION} && \
wget https://github.com/mozilla/geckodriver/releases/download/v${GECKODRIVER_VERSION}/geckodriver-v${GECKODRIVER_VERSION}-linux64.tar.gz -O geckodriver/${GECKODRIVER_VERSION}/geckodriver.tar.gz && \
tar -xvf geckodriver/${GECKODRIVER_VERSION}/geckodriver.tar.gz -C geckodriver/${GECKODRIVER_VERSION} && \
rm geckodriver/${GECKODRIVER_VERSION}/geckodriver.tar.gz; \
fi; \
geckodriver --version
before_script:
- wget http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d chromedriver
- export PATH=$PATH:$PWD/chromedriver
- |
echo "BUILD START: $(date -u +'%Y-%m-%dT%H:%M:%SZ')"
script:
- export $(dbus-launch)
- mkdir ${HOME}/tmp
- export TMPDIR="${HOME}/tmp"
- mvn -B -Plocal-testing,!standard-with-extra-repos clean install -Dlog4j.configurationFile=$(pwd)/travis/log4j2.xml && mvn -P!standard-with-extra-repos -B javadoc:javadoc && mvn -P!standard-with-extra-repos com.gavinmogan:codacy-maven-plugin:coverage -DcoverageReportFile=target/site/jacoco/jacoco.xml -DfailOnMissingReportFile=false
after_failure:
- sh travis/autodeploy.sh "$TRAVIS_BUILD_NUMBER-$TRAVIS_EVENT_TYPE-$TRAVIS_PULL_REQUEST" "https://MyCoRe-Travis:[email protected]/MyCoRe-Travis/test_artifacts.git"