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
|
run: ./bld compile
|
||||||
|
|
||||||
- name: Run tests with bld
|
- name: Run tests with bld
|
||||||
|
env:
|
||||||
|
BITLY_ACCESS_TOKEN: ${{ secrets.BITLY_ACCESS_TOKEN }}
|
||||||
run: ./bld jacoco
|
run: ./bld jacoco
|
||||||
|
|
||||||
- name: Remove pom.xml
|
- name: Remove pom.xml
|
||||||
|
|
|
@ -1,31 +1,11 @@
|
||||||
image: gradle:8-jdk11
|
image: openjdk:17
|
||||||
|
|
||||||
variables:
|
|
||||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m"
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
|
||||||
- test
|
- test
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
script: gradle --build-cache assemble
|
|
||||||
cache:
|
|
||||||
key: "$CI_COMMIT_REF_NAME"
|
|
||||||
policy: push
|
|
||||||
paths:
|
|
||||||
- build
|
|
||||||
- .gradle
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script: gradle check
|
script:
|
||||||
cache:
|
- ./bld download
|
||||||
key: "$CI_COMMIT_REF_NAME"
|
- ./bld compile
|
||||||
policy: pull
|
- ./bld test
|
||||||
paths:
|
|
||||||
- build
|
|
||||||
- .gradle
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ BITLY_ACCESS_TOKEN=abc123def456ghi789jkl0
|
||||||
|
|
||||||
### bld
|
### 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
|
```java
|
||||||
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
|
repositories = List.of(MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
image: maven:3-openjdk-18
|
image: openjdk:17
|
||||||
|
|
||||||
pipelines:
|
pipelines:
|
||||||
default:
|
default:
|
||||||
- step:
|
- step:
|
||||||
caches:
|
name: Test with bld
|
||||||
- gradle
|
|
||||||
script:
|
script:
|
||||||
- bash ./gradlew check
|
- ./bld download
|
||||||
|
- ./bld compile
|
||||||
|
- ./bld test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue