Skip to content

Commit

Permalink
Merge pull request #193 from VirtualFlyBrain/master
Browse files Browse the repository at this point in the history
Casper fixes
  • Loading branch information
Robbie1977 authored May 22, 2018
2 parents de1c8f0 + f1bac1c commit 5dd4cbe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ script:
- sed -i 's|"useSsl":.*,|"useSsl":false,|g' $TRAVIS_BUILD_DIR/dockerFiles/GeppettoConfiguration.json
- sed -i 's|"embedded":.*,|"embedded":false,|g' $TRAVIS_BUILD_DIR/dockerFiles/GeppettoConfiguration.json
- sed -i 's|"embedderURL":.*,|"embedderURL":"/",|g' $TRAVIS_BUILD_DIR/dockerFiles/GeppettoConfiguration.json
- |
if [ "$VFBSUB" = "local" ]; then
sed -i 's|SOLR_SERVER=/solr/ontology/select|SOLR_SERVER=http://solr.virtualflybrain.org/solr/ontology/select|g' $TRAVIS_BUILD_DIR/Dockerfile
fi
- echo -e "travis_fold:end:Geppetto-Config"
- echo -e "travis_fold:start:Docker-Build"
- docker build -t $REPO:$COMMIT .
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ENV PATH=/opt/apache-maven-3.3.9/bin/:$PATH
# Forcing bash:
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && rm /bin/sh.distrib && ln -s /bin/bash /bin/sh.distrib

#SOLR server:
ENV SOLR_SERVER=/solr/ontology/select

USER virgo
# Geppetto:
Expand Down Expand Up @@ -45,6 +47,7 @@ git clone https://github.com/openworm/org.geppetto.datasources.git -b $BRANCH_OR
git clone https://github.com/openworm/org.geppetto.model.swc.git -b $BRANCH_ORG_GEPPETTO_MODEL_SWC && \
git clone https://github.com/openworm/org.geppetto.simulation.git -b $BRANCH_ORG_GEPPETTO_SIMULATION && \
git clone https://github.com/VirtualFlyBrain/uk.ac.vfb.geppetto.git -b $BRANCH_UK_AC_VFB_GEPPETTO && \
sed -i "s|\"/solr/ontology/select|\"${SOLR_SERVER}|g" geppetto-vfb/ComponentsInitialization.js && \
mv geppetto-vfb org.geppetto.frontend/src/main/webapp/extensions/

#Set GA keys TBD:Check if still needed
Expand Down
6 changes: 3 additions & 3 deletions tests/casperjs/control-panel-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ casper.test.begin('VFB control panel tests', 7, function suite(test) {
this.echo("Loading project at URL: " + PROJECT_URL);
this.waitForSelector('div#geppettologo', function () {
this.echo("I waited for the logo to load.");
test.assertTitle("VirtualFlyBrain", "geppetto's homepage title is the one expected");
test.assertExists('div#geppettologo', "logo is found");
}, null, 10000);
test.assertTitle("geppetto's home", "geppetto's homepage title is the one expected");
test.assertExists('div#logo', "logo is found");
}, null, 120000);
});

// check for items in control panel + instances
Expand Down
2 changes: 1 addition & 1 deletion tests/casperjs/query-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ casper.test.begin('VFB query component tests', function suite(test) {
runQueryTests();
}, null, 10000);
}, null, 10000);
}, null, 10000);
}, null, 120000);
});
};

Expand Down

0 comments on commit 5dd4cbe

Please sign in to comment.