@@ -53,24 +53,29 @@ jobs:
53
53
echo "hibernate.dialect=org.hibernate.dialect.MySQL57InnoDBDialect" >> sakai/local.properties
54
54
echo "log.config=DEBUG.org.mariadb.jdbc" >> sakai/local.properties
55
55
cd ..
56
- mvn --batch-mode -DskipTests install sakai:deploy-exploded -Dmaven.tomcat.home=$TOMCAT_DIR
56
+ mvn --batch-mode -DskipTests install sakai:deploy-exploded -Dmaven.tomcat.home=$TOMCAT_DIR -Denforcer.skip -Dmaven.source.skip
57
57
cd library
58
58
scss_dir="src/skins/default/src/sass/themes"
59
59
images_dir="src/skins/default/images"
60
60
while IFS= read -r file; do
61
61
theme=${file##*/} # Extract the full filename
62
62
theme=${theme#_} # Remove leading underscore
63
63
theme=${theme%.scss} # Remove file extension
64
+
65
+ # Only want the custom Longsight themes
66
+ if [[ "$theme" == "dark" || "$theme" == "base" || "$theme" == "light" ]]; then
67
+ continue
68
+ fi
69
+
64
70
# Check if the theme image file exists
65
71
if [[ -f "src/skins/default/images/${theme}.png" ]]; then
66
72
# Copy it to the sakaiLogo.png
67
73
cp "src/skins/default/images/${theme}.png" "src/skins/default/images/sakaiLogo.png"
68
74
fi
69
- mvn --batch-mode -o -DskipTests -Dmaven.tomcat.home=$TOMCAT_DIR install sakai:deploy-exploded -Dsakai.skin.target=$theme
75
+ mvn --batch-mode -o -DskipTests -Dmaven.tomcat.home=$TOMCAT_DIR install sakai:deploy-exploded -Dsakai.skin.target=$theme -Denforcer.skip -Dmaven.source.skip
70
76
done < <(find "$scss_dir" -name '_*.scss' -printf "%T@ %p\n" | sort -n | cut -d' ' -f2-)
71
77
# Most recent theme for testing
72
- recent_theme=$(basename "$(git log -1 --format= --name-only --diff-filter=AM -- "library/src/skins/default/src/sass/themes/_*.scss")" .scss | sed 's/^_//')
73
- echo "skin.default=$recent_theme" >> $TOMCAT_DIR/sakai/local.properties
78
+ echo "skin.default=ttuhsc" >> $TOMCAT_DIR/sakai/local.properties
74
79
cd $TOMCAT_DIR
75
80
bin/catalina.sh start
76
81
- name : Upload Artifact
0 commit comments