Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Java CI

on: [push]
on:
# Trigger the workflow on push or pull request only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
# Also trigger on page_build, as well as release created events
page_build:
release:
types: # This configuration does not affect the page_build event above
- created

jobs:
build:
Expand All @@ -14,4 +26,4 @@ jobs:
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
run: scripts/test-prep.sh
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ You could expect to see _BUILD SUCCESS_ at the end of the build console.

![Alcor Build](design/images/alcor_build.JPG)

Compile and run unit tests.
Deploy an Ignite database for local testing and run unit tests.
If this step passes, then you have everything needed to develop, test, and run Alcor.
```
$ ./scripts/test-prep.sh
$ mvn test
```

Expand Down
8 changes: 8 additions & 0 deletions scripts/test-prep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
d="$(docker ps -a |grep ignite|wc -l)"
if [ $d -eq 0 ]; then
docker run -p 10800:10800 --name ignite -d apacheignite/ignite:2.8.0
fi
d="$(docker ps |grep ignite|wc -l)"
if [ $d -ne 0 ]; then
mvn -B package --file pom.xml
fi
2 changes: 1 addition & 1 deletion services/private_ip_manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#apache.kafka.address=172.17.0.1:9092
#server.port=9000
#Ignite configuration
ignite.host=192.168.137.1
ignite.host=localhost
ignite.port=10800
#Logging configuration
#logging.file.path=./
Expand Down
2 changes: 1 addition & 1 deletion services/route_manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
#logging.file.path=.
#logging.type=file
#Ignite configuration
ignite.host=192.168.137.1
ignite.host=localhost
ignite.port=10800
2 changes: 1 addition & 1 deletion services/subnet_manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#spring.redis.host=10.109.127.248
#spring.redis.port=6379
#ignite configuration
ignite.host=192.168.137.1
ignite.host=localhost
ignite.port=10800
apache.kafka.address=172.17.0.1:9092
#Logging configuration
Expand Down
2 changes: 1 addition & 1 deletion services/vpc_manager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#logging.file.path=.
#logging.type=file
#Ignite configuration
ignite.host=192.168.137.1
ignite.host=localhost
ignite.port=10800
#ignite.key-store-path=F:\\work\\alcor\\git\\chenpp\\alcor\\src\\resources\\keystore.jks
#ignite.key-store-password=123456
Expand Down