-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (39 loc) · 2.55 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
jdk:
- openjdk-ea
- openjdk13
- openjdk12
- openjdk11
- openjdk8
services:
- docker
- mysql
cache:
directories:
- $HOME/.m2
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
sonarcloud:
organization: "fartherp"
token:
secure: "UhPCwM765vZQJywl9+7zrRsnzEsdwf1E32AvSpXXQse9I/WJwWbAg+oNot0s1aTK8ZOxxAq73gW9EZS6EqnYsNBCnOH3MpIuaTGTZ2YdWPJQX5ji6lQa9n4vYMZ4B3f1D0bB4LMc1uLNe3irefkN5KFVGZ7s0nnESo/R7c4FyIKdH44BqOdzMY9n8VJ5Xz5fq5xKdAIzTzzz1d4VU/mkCVLcnKNwqUnIhztdrEnG8x/atTP2xnXBqsS2IYnIQysS3ruRsGWr4JA/GQArCV+jceO6oE/qDUhRwUpcZi7wJAw4/84n5I4LPxX5B9902RGvDW9XXYLRiX0jGs3KP1dkSNOCvk2cCY9ER5cTTyw3IMJnn2OhWkzJMBkta+XH6u4xKhib3bYR/28enApul21kzg6HSUphPwQsodpTL5mqXX7GgcQJ87qyZ6F447HFKjfghLnSLuUf4CkJY+sAwwSrMlCouajFPVSTpYNKA7qiLlm1qX+XQPYXkV0Z3NSI9HUwAM7kJdsSNxRdv3TE/Z335P5uwoW62M9RXU0hk0911e8Pyle8rkeuIcFDienTFJertmr2VjzW+R6KI1LDfJUuT28JdUvmCJUtSXewPV9dgOcgabi6MI4xjIdWCiWK9kk/RogHi004URPTA4jzImTETF1chY0wOaUiKc1UCSuUs+M="
before_install:
- chmod +x mvnw
- sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('root') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root -proot
- sudo service mysql restart
- sudo mysql -u root -proot -e 'CREATE DATABASE IF NOT EXISTS test_tmp;'
- sudo mysql -u root -proot -e 'use test_tmp; CREATE TABLE tb_user (id int(11) NOT NULL AUTO_INCREMENT, user_name varchar(50) NOT NULL, password varchar(50) NOT NULL, phone varchar(20) NOT NULL, create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'
after_success:
- chmod -R 777 ./travis/after_success.sh
- ./travis/after_success.sh
notifications:
email: false
env:
global:
- secure: "Ph9nZWzR1KFeR2Rm4PO0fbTz+5vV2HJmSfLzTRKi9Wkm8TYMLJI/omA/5YiIlRgfZ3q7NA6+CV/iUw/Mgap/NvpQIO1yJ+zh6o2SBGQ/q3jLFdtkhAD1+JI97DfR7R3GAC9sVV82pPGkjap6w8LZASXieUggqLR1olal4w2Hv75vH+d+4wCqt6o7tWH1J6LQ2sa/50sykLn+QPlb2NTXXoXHrCKE2+2kmTW1aoouMDxP3hHrnkYeY+n5liO7LP4MNH/nfSyp4e4ImI+uYvfTHvkMQJI3XdWwRTXAu30Bx9ZwtiT6hBqJbb7hNYPr+w+Yr0IWoDrjHUmFsKqv3P61hGSoUXIP7saVWq4lIzT9nBGCg3w3zAGvwtT5r7f6GNKXsvKMpma+oENgxsUeBMbmhbm6yeyo7F/2fBAB5a+yOrQS0AczPg19/oPQw2MPj0eFIwyWHDD2mZ85YedqEqR8mzthyxV0Ek6CT5CUD2Rn8Af+x1pN/JhI4QcLTDTCBDQaSgr/yV6j0OpIGkhdms8AJqUZkvhnmXW2olBg57yElI9JoFhyazZjrpF7xZvGXIKNYKcDv/EjfVWGTZ2frbDURXJUtzFcBvWh/1JQzoC90OhZCP7XB7wIOtGr5ZODgSE4px00+AzvJf0O8EuQht6rSyU1qTAQXimxzASJ0dO26G8="