Skip to content

Commit 97fd335

Browse files
committed
Merge branch 'master' of github.com:arvyy/r7rs-index-site
2 parents 80fd131 + 5440d1b commit 97fd335

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/2.0/configuration-reference
3+
version: 2.1
4+
5+
# Define a job to be invoked later in a workflow.
6+
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
7+
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
14+
docker:
15+
- image: cimg/openjdk:11.0
16+
# Add steps to the job
17+
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
18+
steps:
19+
# Checkout the code as the first step.
20+
- 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!
26+
- run:
27+
name: Test
28+
command: mvn test
29+
deploy:
30+
machine: true
31+
steps:
32+
- run:
33+
name: Deploy Over SSH
34+
command: |
35+
ssh $SSH_USER@$SSH_HOST "bash ~/update.sh"
36+
37+
# Invoke jobs via workflows
38+
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
39+
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+
jobs:
43+
- build-and-test
44+
- deploy:
45+
requires:
46+
- build-and-test

0 commit comments

Comments
 (0)