Skip to content

Instantly share code, notes, and snippets.

@AdeshAtole
Created May 25, 2020 09:52
Show Gist options
  • Save AdeshAtole/d5d10f36c197843e4f71ec1c39de0f0b to your computer and use it in GitHub Desktop.
Save AdeshAtole/d5d10f36c197843e4f71ec1c39de0f0b to your computer and use it in GitHub Desktop.
MKDIR_P = mkdir -p
clean:
rm -rf /tmp/instahms
rm -rf /tmp/ui
directories:
${MKDIR_P} /tmp/instahms
${MKDIR_P} /tmp/ui
full:clean directories
INSTAUI_LOCALES=en mvn clean -T 8 package -Dhttps.protocols=TLSv1.2 -Dcheckstyle.skip=true -DskipTests=true && rm -r /tmp/instahms && cp -r target/instahms/ui /tmp && cp -r target/instahms /tmp/instahms && cp -r /tmp/ui /tmp/instahms
full-noui:directories
mvn clean -T 8 package -Dhttps.protocols=TLSv1.2 -DskipTests=true -Dcheckstyle.skip=true -Dinstaui.build.skip=true && rm -r /tmp/instahms && cp -r /tmp/ui target/instahms && cp -r target/instahms /tmp/instahms
javabuild:directories
mvn compile -T 8 -Dhttps.protocols=TLSv1.2 -DskipTests=true -Dcheckstyle.skip=true && rsync -az target/classes /tmp/instahms/WEB-INF/ && cp -r /tmp/ui /tmp/instahms && rm /tmp/instahms/WEB-INF/classes/com/insta/hms/common/session/ApiSessionService.class
liquigate:
sudo sh liquigate.sh
checkstyle:
java -jar checkstyle-6.19-all.jar -c src/main/resources/google_checks.xml `git diff --name-only --staged | cut -c 10-`
static:directories
cp -r ./scripts/ /tmp/instahms/scripts && cp -r ./pages/ /tmp/instahms/pages && cp ./src/main/resources/log4j2.xml /tmp/instahms/WEB-INF/classes/log4j2.xml && cp ./src/main/resources/java/resources/environment.properties /tmp/instahms/WEB-INF/classes/java/resources/environment.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment