Skip to content

Commit

Permalink
Merge pull request #649 from openworm/development
Browse files Browse the repository at this point in the history
Release 0.3.7
  • Loading branch information
tarelli authored Aug 15, 2017
2 parents 63e6701 + 51db3e7 commit 1bc83c8
Show file tree
Hide file tree
Showing 203 changed files with 4,657 additions and 5,619 deletions.
67 changes: 60 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,62 @@
language: java
install:
- ./travis-install.sh
script:
- mvn install
- mvn clean install -P master
language: node_js
os: linux
sudo: required
dist: trusty
node_js:
- "7"
env:
global:
secure: EvqtUrZj3GsqzAkjZIVf2ZIze6ec72G8Dnkc0J3lKxwDTK6+KgIYgRWUWWO6tzL5Mn3Y+kkiHvyAkrHNPb2QZVBAdOdE3O308WRi64FF71nurd46zE43K/sSxcX/zCoBtxsz49oRcluPWl+nGDi/iKEysgcnQCvz23VWEYHAsOk=
secure: dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
install:
- npm install --silent -g phantomjs
- npm install --silent -g casperjs
- npm install --silent -g slimerjs
- npm install --silent -g gl

services:
- docker
addons:
firefox: "51.0"
apt:
packages:
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- export SLIMERJSLAUNCHER=/home/travis/firefox-51.0/firefox/firefox
- export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/

script:
- echo "Current time :$(date +"%T")"
- cd $TRAVIS_BUILD_DIR/src/main/webapp/js/pages/tests/casperjs
- echo "$TRAVIS_BRANCH"
- docker build -t="geppetto" --build-arg frontendBranch=$TRAVIS_BRANCH https://github.com/openworm/org.geppetto.git#docker-casperjs:utilities/docker/geppetto/
- echo "Current time :$(date +"%T")"
- docker run -t -dit --name=geppetto_container -h localhost -p 28081:8080 geppetto
- bash $TRAVIS_BUILD_DIR/src/main/webapp/js/pages/tests/casperjs/test_geppetto_server.sh
- sleep 60
- http_status=$(curl -s -I $1 http://localhost:28081/org.geppetto.frontend | grep HTTP/1.1 | awk {'print $2'})
- echo "$http_status"
- while [ "$http_status" == "404" ]; do
echo "Restart run";
docker stop $(docker ps -a -q);
docker rm $(docker ps -a -q);
docker run -t -dit --name=geppetto_container -h localhost -p 28081:8080 geppetto;
bash test_geppetto_server.sh;
sleep 60;
http_status=$(curl -s -I $1 http://localhost:28081/org.geppetto.frontend | grep HTTP/1.1 | awk {'print $2'});
echo "Done restarting";
echo "$http_status";
done;
- "curl -s -I $1 http://localhost:28081/org.geppetto.frontend | grep HTTP/1.1 | awk {'print $2'}"
- sleep 60;
- xvfb-run -a --server-args="-screen 0 1024x768x24" casperjs test --includes=CoreTestsUtility.js CoreTests.js --host=http://localhost:28081/ --engine=slimerjs
- sudo docker cp geppetto_container:/home/developer/virgo/serviceability/logs/log.log /etc
- tail /etc/log.log -n 100
- echo "Current time :$(date +"%T")"
- docker stop $(docker ps -a -q)
- docker rm $(docker ps -a -q)
3 changes: 0 additions & 3 deletions META-INF/MANIFEST.MF

This file was deleted.

27 changes: 12 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.geppetto</groupId>
<artifactId>frontend</artifactId>
<version>0.3.6</version>
<version>0.3.7</version>
<name>Geppetto Frontend</name>
<packaging>war</packaging>
<properties>
Expand All @@ -14,12 +14,6 @@
<profiles>
<profile>
<id>master</id>
<properties>
<contextPath>/</contextPath>
<useSsl>true</useSsl>
<embedded>false</embedded>
<embedderURL>/</embedderURL>
</properties>
<build>
<plugins>
<plugin>
Expand All @@ -42,6 +36,15 @@
<workingDirectory>src/main/webapp</workingDirectory>
</configuration>
</execution>
<execution>
<id>npm set registry https://registry.npmjs.org/p</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<workingDirectory>src/main/webapp</workingDirectory>
</configuration>
</execution>
<execution>
<id>npm install webapp</id>
<goals>
Expand All @@ -59,7 +62,7 @@
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build -- --contextPath=${contextPath} --useSsl=${useSsl} --embedded=${embedded} --embedderURL=${embedderURL}</arguments>
<arguments>run build -- --contextPath=${contextPath} --useSsl=${useSsl} --embedded=${embedded} --embedderURL=${embedderURL}</arguments>
<workingDirectory>src/main/webapp</workingDirectory>
</configuration>
</execution>
Expand All @@ -70,12 +73,6 @@
</profile>
<profile>
<id>development</id>
<properties>
<contextPath>org.geppetto.frontend</contextPath>
<useSsl>false</useSsl>
<embedded>false</embedded>
<embedderURL>/</embedderURL>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
Expand Down Expand Up @@ -115,7 +112,7 @@
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run build-dev -- --contextPath=${contextPath} --useSsl=${useSsl} --embedded=${embedded} --embedderURL=${embedderURL}</arguments>
<arguments>run build-dev -- --contextPath=${contextPath} --useSsl=${useSsl} --embedded=${embedded} --embedderURL=${embedderURL}</arguments>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ private String calculateStorage(long size)
}
else if(formattedSize > 1000000)
{
formattedSize = formattedSize / 1024 / 104;
formattedSize = formattedSize / 1024 / 1024;
storageUnit = " GB";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1428,9 +1428,6 @@ public void setConnectionProject(IGeppettoProject geppettoProject) throws Geppet
*
* @param requestID
*/
/**
* @param requestID
*/
public void checkUserPrivileges(String requestID)
{
boolean hasPersistence = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/


package org.geppetto.frontend.controllers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/

package org.geppetto.frontend.messaging;

import java.io.ByteArrayOutputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/

package org.geppetto.frontend.messaging;

import com.google.gson.Gson;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/

package org.geppetto.frontend.messaging;

import java.util.Set;
Expand Down
33 changes: 1 addition & 32 deletions src/main/java/org/geppetto/frontend/messaging/MessageSender.java
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/

package org.geppetto.frontend.messaging;

import java.nio.file.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2011 - 2015 OpenWorm.
* http://openworm.org
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/licenses/MIT
*
* Contributors:
* OpenWorm - http://openworm.org/people.html
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*******************************************************************************/

package org.geppetto.frontend.messaging;

import java.util.EventObject;
Expand Down
Loading

0 comments on commit 1bc83c8

Please sign in to comment.