This commit is contained in:
Erik C. Thauvin 2020-07-27 03:40:15 -07:00
parent b0e0149412
commit de1325cc06
5 changed files with 17 additions and 25 deletions

View file

@ -49,6 +49,6 @@ jobs:
workflows:
version: 2
gradle:
jobs:
- build_gradle_jdk8
- build_gradle_jdk14
jobs:
- build_gradle_jdk8
- build_gradle_jdk14

View file

@ -1,25 +1,18 @@
name: Java CI with Gradle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew check
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew check

View file

@ -2,7 +2,6 @@ image: gradle:alpine
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
CI: "true"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle

View file

@ -21,6 +21,6 @@ before_install:
after_success:
- |
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == "openjdk14" ]; then
./gradlew sonarqube
fi
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == "openjdk14" ]; then
./gradlew sonarqube
fi

View file

@ -53,7 +53,7 @@ A couple of useful functions are also available:
```kotlin
ReadingTime.wordCount(htmlText) // Returns the count of words. (HTML stripped)
ReadingTime.imgCount(htmlText) // Returns the count of images. (img HTML tags)
ReadingTime.imgCount(htmlText) // Returns the count of images. (HTML img tags)
```
### Gradle