Skip to content

Commit 889a8ff

Browse files
authored
Refactor and externalize common library code; use embedded solr to make it easy to run without docker (#12)
1 parent 6a2b2bb commit 889a8ff

Some content is hidden

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

69 files changed

+1079
-4021
lines changed

.circleci/config.yml

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/2.0/configuration-reference
31
version: 2.1
42

5-
# Define a job to be invoked later in a workflow.
6-
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
73
jobs:
8-
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
9-
build-and-test:
10-
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
11-
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
12-
# Be sure to update the Docker image tag below to openjdk version of your application.
13-
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/openjdk
4+
test:
145
docker:
156
- image: cimg/openjdk:11.0
16-
# Add steps to the job
17-
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
187
steps:
19-
# Checkout the code as the first step.
208
- checkout
21-
# Use mvn clean and package as the standard maven build phase
22-
- run:
23-
name: Build
24-
command: mvn -B -DskipTests clean package
25-
# Then run your tests!
9+
2610
- run:
2711
name: Test
28-
command: mvn test
12+
command: |
13+
cd kawa-web-collection
14+
git submodule update --init
15+
mvn install -DskipTests=true
16+
cd ..
17+
mvn test
18+
19+
build:
20+
machine: true
21+
steps:
22+
- checkout
23+
24+
- run: |
25+
cd kawa-web-collection
26+
git submodule update --init
27+
cd ..
28+
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
29+
docker build -t arvyy/r7rs-index:$CIRCLE_BRANCH -f docker/Dockerfile .
30+
31+
- run: docker push arvyy/r7rs-index:$CIRCLE_BRANCH
32+
2933
deploy:
3034
machine: true
3135
steps:
@@ -34,13 +38,17 @@ jobs:
3438
command: |
3539
ssh $SSH_USER@$SSH_HOST "bash ~/update.sh"
3640
37-
# Invoke jobs via workflows
38-
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
3941
workflows:
40-
sample: # This is the name of the workflow, feel free to change it to better match your workflow.
41-
# Inside the workflow, you define the jobs you want to run.
42+
sample:
4243
jobs:
43-
- build-and-test
44+
- test
45+
- build:
46+
requires:
47+
- test
4448
- deploy:
4549
requires:
46-
- build-and-test
50+
- build
51+
filters:
52+
branches:
53+
only:
54+
- master

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "kawa-web-collection"]
2+
path = kawa-web-collection
3+
url = https://github.com/arvyy/kawa-web-collection

0 commit comments

Comments
 (0)