Fixed workflows/pipelines
This commit is contained in:
parent
f8cf0fd338
commit
bcc5fe2cb7
4 changed files with 13 additions and 30 deletions
2
.github/workflows/gradle.yml
vendored
2
.github/workflows/gradle.yml
vendored
|
@ -35,6 +35,8 @@ jobs:
|
|||
run: ./bld compile
|
||||
|
||||
- name: Run tests with bld
|
||||
env:
|
||||
BITLY_ACCESS_TOKEN: ${{ secrets.BITLY_ACCESS_TOKEN }}
|
||||
run: ./bld jacoco
|
||||
|
||||
- name: Remove pom.xml
|
||||
|
|
|
@ -1,31 +1,11 @@
|
|||
image: gradle:8-jdk11
|
||||
|
||||
variables:
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m"
|
||||
|
||||
before_script:
|
||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
image: openjdk:17
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script: gradle --build-cache assemble
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_NAME"
|
||||
policy: push
|
||||
paths:
|
||||
- build
|
||||
- .gradle
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script: gradle check
|
||||
cache:
|
||||
key: "$CI_COMMIT_REF_NAME"
|
||||
policy: pull
|
||||
paths:
|
||||
- build
|
||||
- .gradle
|
||||
script:
|
||||
- ./bld download
|
||||
- ./bld compile
|
||||
- ./bld test
|
||||
|
|
|
@ -55,7 +55,7 @@ BITLY_ACCESS_TOKEN=abc123def456ghi789jkl0
|
|||
|
||||
### bld
|
||||
|
||||
To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/bitly-shorten/blob/master/examples/bld/src/bld/java/com/example/CryptoPriceExampleBuild.java) file:
|
||||
To use with [bld](https://rife2.com/bld), include the following dependency in your [build](https://github.com/ethauvin/bitly-shorten/blob/master/examples/bld/src/bld/java/com/example/ExampleBuild.java) file:
|
||||
|
||||
```java
|
||||
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
image: maven:3-openjdk-18
|
||||
image: openjdk:17
|
||||
|
||||
pipelines:
|
||||
default:
|
||||
- step:
|
||||
caches:
|
||||
- gradle
|
||||
name: Test with bld
|
||||
script:
|
||||
- bash ./gradlew check
|
||||
- ./bld download
|
||||
- ./bld compile
|
||||
- ./bld test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue