Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision bc3f225ce88fe6137237e5f248b11f1daaf3dd1e authored by Alexey Sergushichev on 07 August 2018, 12:34:59 UTC, committed by Alexey Sergushichev on 07 August 2018, 12:34:59 UTC
update static
1 parent 9f7b6d4
  • Files
  • Changes
  • 86328e5
  • /
  • inst
  • /
  • test_js.sh
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:bc3f225ce88fe6137237e5f248b11f1daaf3dd1e
directory badge Iframe embedding
swh:1:dir:a3afd935181c1c8c84fe25c51ea999446ab61ba4
content badge Iframe embedding
swh:1:cnt:4993093663550f8dc9bcb2bea55a76a14fb6656d
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
test_js.sh
#!/bin/bash
R -e "devtools::install('.')"

mkdir -p inst/www/phantasus.js/jasmine/cache
cp "./inst/testdata/GSE27112-GPL6103.rda" inst/www/phantasus.js/jasmine/cache
cd inst/www/phantasus.js/
npm install karma --save-dev
npm install

R -e "phantasus::getES('GSE53986', destdir = 'jasmine/cache')" 

touch server.log
R -e "phantasus::servePhantasus('0.0.0.0', 8000, cacheDir = 'jasmine/cache', preloadedDir = 'jasmine/cache', openInBrowser=FALSE)"  > server.log 2>&1 &
PH_PID=$!


# Waiting for the server to start
while ! grep -q started server.log ; do sleep 0.1; done

sleep 0.1

./node_modules/karma/bin/karma start my.conf.js --single-run
RETVAL=$?

cd

function finish {
    kill $PH_PID
    echo Killed $PH_PID
    echo "Killed OpenCPU-server"
}
trap finish EXIT

if [ $RETVAL -eq 0 ]
then
    echo "Jasmine tests are successfully passed"
    exit 0
else
    echo "Tests failed" >&2
    exit 1
fi



The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top