-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from sdtabilit/feature/SLTS-65-building-the-ne…
…w-ui-on-travis SLTS-65 Add building the new UI on travis.
- Loading branch information
Showing
5 changed files
with
60 additions
and
2 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
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 |
---|---|---|
|
@@ -12,13 +12,40 @@ before_install: | |
- sudo apt-get install tomcat7 | ||
- sudo apt-get install traceroute | ||
- sudo apt-get install sshpass | ||
#- wget https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.xz | ||
#- mkdir node | ||
#- mkdir node/etc | ||
#- echo 'prefix=/usr/local' > node/etc/npmrc | ||
#- tar xvf node-v*.tar.?z --strip-components=1 -C ./node | ||
#- sudo mv node /opt/ | ||
#- export PATH=/opt/node/bin:$PATH | ||
#- sudo apt-get install -y build-essential | ||
#- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | ||
#- sudo apt-get install -y nodejs | ||
#- wget -qO- https://deb.nodesource.com/setup_6.x | sudo bash - | ||
#- sudo apt-get install nodejs | ||
#- sudo apt-get install npm | ||
before_script: | ||
#- export PATH=/opt/node:/opt/node/bin:$PATH | ||
- nvm ls | ||
- nvm install node | ||
- nvm use node | ||
- npm -v | ||
- node -v | ||
- env | ||
- npm install -g bower | ||
- npm install -g angular-cli | ||
- chmod +x ./get_seroUtils.sh | ||
- "./get_seroUtils.sh" | ||
- ls -l ./WebContent/WEB-INF/lib/seroUtils.jar | ||
- cd ./WebContent/resources/app; bower update; | ||
- cd ../../.. | ||
- cd ./ScadaLTS-UI | ||
- npm install | ||
- ng build | ||
- cd ./war | ||
- ant war | ||
- cd ../.. | ||
language: java | ||
jdk: | ||
- openjdk7 | ||
|
@@ -35,9 +62,11 @@ env: | |
matrix: | ||
- CATALINA_HOME=/usr/share/tomcat7 | ||
global: | ||
secure: mRa7Eq70zFEeWboEaUJNkFUK/3ufFANJAWe9K515qB5AoDLsVe0dwfqpCjqWOKq1fbbO8lA1MaISC7VgDyiVbfvYIiENh+Bav/yqjEF5ED3Qcm5fgZvkIaybAUe5yCVBFrrBjQwF5x0Ocq0SAqSoU0Bs8/24QPoR22QTBVS0NV5lzyEKVu9p40QRq3Aavpq2o0xoVz8Dx9o88nOgdcTCjT3GBuZip+8eMrOcFEbKyicLQ73nlk1v4cEB1MTv/qt1Djj3KPm/wbmOWOx9ulVmch0UMLaH8tQd+UFLjga0RTGZHfGj7KhATl0c6FFbO67Er55R3STqMWXzYACnfYRbFyl+Ds9BaImKtqNLJlrJoZlT4DitEPG4RR+WcCvsAJ8Tj7hiV6xwE2LwjiSC56U85k768PCsDLDA7q8VoR1QoMIeZg1rW+rGgMUFOwgyMx0BuXBmyniU5T2trMJvcLZpHX/QPE4UnQ5jvnaEpTXxvJmLBeO1/5ajesCYNyIH9fE00b/vgz5yBVw3S9y0D3Ps7WhIXlhiz57pI6pBi8lUmO0YdtbW9Hc0oDpI7Asg04ftdIJ7Y1+3Ww/rwszQV6QnRiH9iuWq7HJJCmgKeNHS3fo/Zy8N9Xmx3hfFuedpToIN0B+tlzwnDCtvS4Zhx8rSv+9+v/XHYinan8z25Z3CM8A= | ||
- secure: mRa7Eq70zFEeWboEaUJNkFUK/3ufFANJAWe9K515qB5AoDLsVe0dwfqpCjqWOKq1fbbO8lA1MaISC7VgDyiVbfvYIiENh+Bav/yqjEF5ED3Qcm5fgZvkIaybAUe5yCVBFrrBjQwF5x0Ocq0SAqSoU0Bs8/24QPoR22QTBVS0NV5lzyEKVu9p40QRq3Aavpq2o0xoVz8Dx9o88nOgdcTCjT3GBuZip+8eMrOcFEbKyicLQ73nlk1v4cEB1MTv/qt1Djj3KPm/wbmOWOx9ulVmch0UMLaH8tQd+UFLjga0RTGZHfGj7KhATl0c6FFbO67Er55R3STqMWXzYACnfYRbFyl+Ds9BaImKtqNLJlrJoZlT4DitEPG4RR+WcCvsAJ8Tj7hiV6xwE2LwjiSC56U85k768PCsDLDA7q8VoR1QoMIeZg1rW+rGgMUFOwgyMx0BuXBmyniU5T2trMJvcLZpHX/QPE4UnQ5jvnaEpTXxvJmLBeO1/5ajesCYNyIH9fE00b/vgz5yBVw3S9y0D3Ps7WhIXlhiz57pI6pBi8lUmO0YdtbW9Hc0oDpI7Asg04ftdIJ7Y1+3Ww/rwszQV6QnRiH9iuWq7HJJCmgKeNHS3fo/Zy8N9Xmx3hfFuedpToIN0B+tlzwnDCtvS4Zhx8rSv+9+v/XHYinan8z25Z3CM8A= | ||
- TRAVIS_NODE_VERSION="6" | ||
after_script: | ||
- echo $TRAVIS_BUILD_DIR | ||
- eval "$(ssh-agent -s)" | ||
- traceroute -p 22 149.56.44.225 | ||
- sshpass -e scp ./ScadaBR.war [email protected]:/root/ScadaBR.war | ||
- sshpass -e scp ./ScadaLTS-UI/war/ScadaLTS.war [email protected]:/root/ScadaLTS.war |
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,3 @@ | ||
Manifest-Version: 1.0 | ||
Class-Path: | ||
|
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,3 @@ | ||
<welcome-file-list> | ||
<welcome-file>index.html</welcome-file> | ||
</welcome-file-list> |
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<project basedir="." name="ScadaLTS"> | ||
|
||
<target name="war" description="Bundles the application as a WAR file" > | ||
<mkdir dir="WebContent/WEB-INF/classes"/> | ||
<copy includeemptydirs="false" todir="WebContent"> | ||
<fileset dir="../dist"> | ||
<include name="**/*.html"/> | ||
<include name="**/*.js"/> | ||
</fileset> | ||
</copy> | ||
|
||
<war destfile="ScadaLTS.war" | ||
basedir="WebContent" | ||
needxmlfile="false"> | ||
</war> | ||
</target> | ||
|
||
</project> |