Skip to content

Commit 1d967bb

Browse files
committed
Add link builder DSL to write idiomatic Kotlin code
1 parent ef3e3c4 commit 1d967bb

File tree

63 files changed

+2497
-1343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2497
-1343
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ target/
55
*.iml
66
.idea
77
*.orig
8-
.springBeans
8+
.springBeans
9+
credentials.yml

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

ci/README.adoc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
== Spring HATEOAS CI
2+
3+
Spring HATEOAS uses Concourse as it's CI tool of choice. This provides support for:
4+
5+
* Pipeline against the `master` branch
6+
* Support for pull requests
7+
8+
=== Creating a pipeline
9+
10+
Using the `fly` command, you can execute a series of commands to create multiple pipelines to manage everything. But
11+
first, some critical credentials are needed.
12+
13+
Create a `credentials.yml` file like this:
14+
15+
[source,yml]
16+
----
17+
github-access-token: <your Personal Access Token from github>
18+
docker-email: <your docker hub email address>
19+
docker-username: <your docker hub username>
20+
docker-password: <your docker hub password>
21+
artifactory-username: <your artifactory username>
22+
artifactory-password: <your artifactory encoded password>
23+
----
24+
25+
WARNING: Do NOT check this file into source control! If you'll check, `credentials.yml` is listed in `.gitignore` to prevent this.
26+
27+
With this in place, run the following `fly` commands to create pipelines:
28+
29+
----
30+
% fly -t spring-data sp -p spring-hateoas -c ci/pipeline-template.yml -l credentials.yml -v branch=master
31+
----
32+
33+
With this pipeline in place, you can now activate and expose it:
34+
35+
----
36+
% fly -t spring-data unpause-pipeline -p spring-hateoas
37+
% fly -t spring-data expose-pipeline -p spring-hateoas
38+
----

ci/build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
6+
7+
spring_hateoas_artifactory=$(pwd)/spring-hateoas-artifactory
8+
9+
rm -rf $HOME/.m2/repository/org/springframework/hateoas 2> /dev/null || :
10+
11+
cd spring-hateoas-github
12+
13+
./mvnw -Pdistribute -Dmaven.test.skip=true clean deploy \
14+
-DaltDeploymentRepository=distribution::default::file://${spring_hateoas_artifactory}

ci/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: docker-image
6+
source:
7+
repository: openjdk
8+
tag: 8-jdk
9+
10+
inputs:
11+
- name: spring-hateoas-github
12+
13+
outputs:
14+
- name: spring-hateoas-artifactory
15+
16+
caches:
17+
- path: maven
18+
19+
run:
20+
path: spring-hateoas-github/ci/build.sh

0 commit comments

Comments
 (0)