-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 1691-change-to-jakarta-ee-namespace
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Maven Regression Test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
regression_test_hindi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
cache: maven | ||
- run: mvn clean | ||
- run: mvn verify -P regression-testing-rest -D base.url=http://hin.elimu.ai | ||
|
||
regression_test_tagalog: | ||
needs: regression_test_hindi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
cache: maven | ||
- run: mvn clean | ||
- run: mvn verify -P regression-testing-rest -D base.url=http://tgl.elimu.ai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/config/centos-stream-9/~/.elimu-ai/deploy-webapp.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
VERSION=$1 | ||
echo "VERSION: $VERSION" | ||
|
||
echo "Stopping Jetty..." | ||
systemctl stop jetty | ||
|
||
WAR_FILE_URL=https://jitpack.io/com/github/elimu-ai/webapp/webapp-$VERSION/webapp-webapp-$VERSION.war | ||
echo "Downloading WAR file from $WAR_FILE_URL" | ||
wget -O /opt/jetty-base/webapps/webapp.war $WAR_FILE_URL | ||
|
||
echo "Starting Jetty" | ||
systemctl start jetty |