-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (43 loc) · 1.38 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
language: java
jdk: oraclejdk8
addons:
apt:
packages:
- ldap-utils
- slapd
services:
- mysql
before_install:
- mysql -e 'DROP DATABASE IF EXISTS my_test_database;'
- mysql -e 'CREATE DATABASE IF NOT EXISTS my_test_database;'
- sudo apt-get update
- sudo apt-get install proftpd-basic -y
# https://github.com/pear/Net_LDAP2/blob/master/.travis.yml
#before_script:
# - cat tests/ldapconfig.ini.dist | sed s/389/3389/ > tests/ldapconfig.ini
# - mkdir /tmp/slapd
# - slapd -f tests/ldif_data/slapd.conf -h ldap://localhost:3389 &
# - sleep 3
# - ldapadd -h localhost:3389 -D cn=admin,dc=example,dc=com -w test -f tests/ldif_data/base.ldif
#- ldapadd -h localhost:3389 -D cn=admin,dc=example,dc=com -w test -f tests/ldif_data/INITIAL_TESTDATA.ldif
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.sonar/cache
- $HOME/.cache
- $HOME/.m2
addons:
sonarcloud:
organization: "jukusoft"
script:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn clean verify
- mvn clean install
- mvn -e clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.login=${SONAR_TOKEN}
# - bash <(curl -s https://codecov.io/bash) --t ${CODEDOV_TOKEN}
notifications:
email: false