Build erlang via mvn-phase-script 95/9495/3
authorLusheng Ji <lji@research.att.com>
Wed, 30 Aug 2017 17:04:44 +0000 (17:04 +0000)
committerLusheng Ji <lji@research.att.com>
Fri, 1 Sep 2017 03:14:58 +0000 (03:14 +0000)
Issue-Id: DCAEGEN2-60
Change-Id: I24d6d5047984cf813dca1581cbb3c92e32589534
Signed-off-by: Lusheng Ji <lji@research.att.com>
mvn-phase-script.sh
pom.xml

index 10d8e9e..6aa20e2 100755 (executable)
@@ -48,9 +48,15 @@ generate-sources)
   ;;
 compile)
   echo "==> compile phase script"
+  echo "=====> building "
+  rm -rf _build/;
+  /usr/bin/rebar3 upgrade;
+  /usr/bin/rebar3 release;
   ;;
 test)
   echo "==> test phase script"
+  echo "=====> testing "
+  /usr/bin/rebar3 eunit
   ;;
 package)
   echo "==> package phase script"
diff --git a/pom.xml b/pom.xml
index cbe03e5..3c102cd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -35,6 +35,8 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
   <url>http://maven.apache.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <!-- Skipping sonar for now, until LF SonarQube supports Erland scan -->
+    <sonar.skip>true</sonar.skip>
     <sonar.sources>.</sonar.sources>
     <!-- customize the SONARQUBE URL -->
     <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->