-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (63 loc) · 2.26 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
67
68
69
70
71
72
73
74
language: java
jdk: oraclejdk8
services:
- mysql
before_install:
- mysql -e 'DROP DATABASE IF EXISTS my_test_database;'
- mysql -e 'CREATE DATABASE IF NOT EXISTS my_test_database;'
- mysql -e 'DROP DATABASE IF EXISTS my_test_database2;'
- mysql -e 'CREATE DATABASE IF NOT EXISTS my_test_database2;'
- sudo apt-get install proftpd-basic -y
- sudo cp ./junit-tests/proftpd/proftpd.conf /etc/proftpd/proftpd.conf
- sudo pwd
- cd /etc/proftpd
- passwd="testpass"
- sudo mkdir /var/www
- sudo mkdir /var/www/ftptest
- id ftp
- echo $passwd | sudo ftpasswd --stdin --passwd --name test --uid 119 --gid 65534 --home /var/www/ftptest --shell /bin/false
# - sudo ftpasswd --stdin --passwd --name test --uid 33 --home /var/www/ftptest --shell /bin/false < ./junit-tests/proftpd/passwd.txt
# - sudo ftpasswd --passwd --name testftp --home /var/www/ftptest --shell /bin/false
- sudo cat /etc/proftpd/ftpd.passwd
- sudo /etc/init.d/proftpd restart
- cd /home/travis/build/JuKu/mmo-gameserver-2.0
- sudo cp -rf ./junit-tests/ftp-files /var/www/ftptest
- sudo chmod -R 777 /var/www/ftptest
# https://wiki.debianforum.de/FTP-Server_mit_ProFTPD
# https://docs.travis-ci.com/user/installing-dependencies/
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"
#jukusoft, juku-github
#don't do a shallow clone (for sonarqube)
git:
depth: 9999999
script:
- mvn clean 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}
# - mvn cobertura:cobertura
notifications:
email: false
webhooks:
urls:
- https://fathomless-fjord-24024.herokuapp.com/notify
on_success: always # default: always
on_failure: always # default: always
on_start: never # default: never
on_cancel: always # default: always
on_error: always # default: always
#notifications:
# email: false
# webhooks: https://fathomless-fjord-24024.herokuapp.com/notify