-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
37 lines (31 loc) · 893 Bytes
/
.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
language: java
dist: focal
install: true
jdk:
- openjdk14
services:
- mysql
script:
- ./gradlew build
- |
if [[ $TRAVIS_BRANCH == "release" && $TRAVIS_PULL_REQUEST == "false" ]];
then
mysql -e "CREATE DATABASE dbvergilius; CREATE USER 'vergilius' IDENTIFIED BY '3034'; GRANT ALL PRIVILEGES ON dbvergilius.* TO 'vergilius'; FLUSH PRIVILEGES;" && ./generate.sh
fi
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/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
repo: VergiliusProject/vergiliusproject.github.io
target_branch: master
local_dir: localhost:8080
on:
branch: release