Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casper fixes #193

Merged
merged 8 commits into from
May 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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