-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 845 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
language: java
jdk:
- openjdk11
branches:
only:
- main
script:
- "./mvnw test javadoc:aggregate -B"
notifications:
email:
recipients:
- danilarassokhin@gmail.com
on_success: never
on_failure: always
after_success: |-
if [ -n "$GITHUB_API_KEY" ]; then
cd "$TRAVIS_BUILD_DIR"
mkdir apidocs
mkdir apidocs/javadoc
cd apidocs
git init
git checkout -b apidocs
git pull https://github.com/CrissNamon/progressive.git apidocs
cp -r ../target/site/apidocs/. ./javadoc/
git add .
git -c user.name='travis' -c user.email='travis' commit -m 'Update docs'
git remote add origin https://github.com/CrissNamon/progressive.git
git remote -v
git push -q https://CrissNamon:$GITHUB_API_KEY@github.com/CrissNamon/progressive.git apidocs &>/dev/null
cd "$TRAVIS_BUILD_DIR"
fi