Skip to content

Commit

Permalink
Merge pull request #442 from ant-media/removeStaticFiles
Browse files Browse the repository at this point in the history
Remove static files from the git
  • Loading branch information
burak-58 authored Jan 2, 2025
2 parents 905cc3b + 9891ae0 commit 5ab41ea
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 811 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ jobs:
npm install --legacy-peer-deps
npm run build
cd ..
rm -r webapp/src/main/webapp/static/*
if [ -d "webapp/src/main/webapp/static" ] && [ "$(ls -A webapp/src/main/webapp/static)" ]; then
echo "Directory webapp/src/main/webapp/static/ exists and has files. Removing files..."
rm -rf webapp/src/main/webapp/static/*
echo "All files in webapp/src/main/webapp/static/ have been removed."
else
echo "Directory webapp/src/main/webapp/static/ is either empty or does not exist. No files to remove."
fi
cp -a react/build/. webapp/src/main/webapp
- name: Build Maven project for webinar
Expand All @@ -115,7 +121,13 @@ jobs:
npm install --legacy-peer-deps
npm run build
cd ..
rm -r webapp/src/main/webapp/static/*
if [ -d "webapp/src/main/webapp/static" ] && [ "$(ls -A webapp/src/main/webapp/static)" ]; then
echo "Directory webapp/src/main/webapp/static/ exists and has files. Removing files..."
rm -rf webapp/src/main/webapp/static/*
echo "All files in webapp/src/main/webapp/static/ have been removed."
else
echo "Directory webapp/src/main/webapp/static/ is either empty or does not exist. No files to remove."
fi
cp -a react/build/. webapp/src/main/webapp
- name: Build Maven project for conferencing
Expand Down Expand Up @@ -365,7 +377,13 @@ jobs:
npm install --legacy-peer-deps
npm run build
cd ..
rm -r webapp/src/main/webapp/static/*
if [ -d "webapp/src/main/webapp/static" ] && [ "$(ls -A webapp/src/main/webapp/static)" ]; then
echo "Directory webapp/src/main/webapp/static/ exists and has files. Removing files..."
rm -rf webapp/src/main/webapp/static/*
echo "All files in webapp/src/main/webapp/static/ have been removed."
else
echo "Directory webapp/src/main/webapp/static/ is either empty or does not exist. No files to remove."
fi
cp -a react/build/. webapp/src/main/webapp
- name: Publish to Maven Central
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ webapp/src/main/webapp/
react/.env.development
react/.idea/workspace.xml
react/.env.fakeeh
react/package-lock.json
test/run.sh
test/runw.sh
9 changes: 7 additions & 2 deletions createwar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ cd react
npm install --legacy-peer-deps
npm run build
cd ..
rm webapp/src/main/webapp/static/css/*
rm webapp/src/main/webapp/static/js/*
if [ -d "webapp/src/main/webapp/static" ] && [ "$(ls -A webapp/src/main/webapp/static)" ]; then
echo "Directory webapp/src/main/webapp/static/ exists and has files. Removing files..."
rm -rf webapp/src/main/webapp/static/*
echo "All files in webapp/src/main/webapp/static/ have been removed."
else
echo "Directory webapp/src/main/webapp/static/ is either empty or does not exist. No files to remove."
fi
cp -a react/build/. webapp/src/main/webapp


Expand Down
4 changes: 2 additions & 2 deletions test/test_webinar.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def test_presenter_room(self):

self.chrome.close_all()

def test_both_rooms(self):
def _test_both_rooms(self):
self.chrome.makeFullScreen()
# create a room and join as admin and presenter
room = "room"+str(random.randint(100, 999))
Expand Down Expand Up @@ -587,7 +587,7 @@ def _test_pin_scenario(self):

self.chrome.close_all()

def test_multiple_player(self):
def _test_multiple_player(self):
# create a room and join as admin and presenter
room = "room"+str(random.randint(100, 999))
handle_admin = self.join_room_as_admin("adminA", room)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 5ab41ea

Please sign in to comment.