Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NDIP
Pulsar
Commits
655bd9ce
Commit
655bd9ce
authored
8 years ago
by
John Chilton
Browse files
Options
Downloads
Patches
Plain Diff
Add install testing to Travis.
Finally includes testing against actual Galaxy master branch.
parent
95eb9cab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+1
-0
1 addition, 0 deletions
.travis.yml
Makefile
+6
-0
6 additions, 0 deletions
Makefile
install_test/test_install.bash
+35
-11
35 additions, 11 deletions
install_test/test_install.bash
tox.ini
+7
-0
7 additions, 0 deletions
tox.ini
with
49 additions
and
11 deletions
.travis.yml
+
1
−
0
View file @
655bd9ce
...
...
@@ -10,6 +10,7 @@ env:
-
TOX_ENV=py27 SETUP=true
-
TOX_ENV=py34 SETUP=true
-
TOX_ENV=py34-unit SETUP=true
-
TOX_ENV=py27-install-wheel
install
:
-
pip install tox
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
6
−
0
View file @
655bd9ce
...
...
@@ -79,6 +79,12 @@ lint-readme:
tests
:
$(
IN_VENV
)
nosetests
$(
NOSE_TESTS
)
test-install-pypi
:
bash install_test/test_install.bash
test-install-wheel
:
dist
PULSAR_INSTALL_TARGET
=
$(
shell
pwd
)
/dist/pulsar_app
*
.whl bash install_test/test_install.bash
coverage
:
coverage run
--source
$(
SOURCE_DIR
)
setup.py
$(
TEST_DIR
)
coverage report
-m
...
...
This diff is collapsed.
Click to expand it.
install_test/test_install.bash
+
35
−
11
View file @
655bd9ce
...
...
@@ -2,39 +2,63 @@
set
-e
echo
"Start Pulsar Checks"
shopt
-s
nullglob
PULSAR_INSTALL_TARGET
=
"
${
PULSAR_INSTALL_TARGET
:-
pulsar
-app
}
"
#PULSAR_INSTALL_TARGET=`echo $PULSAR_INSTALL_TARGET` # Expand wildcards
PLANEMO_INSTALL_TARGET
=
"
${
PLANEMO_INSTALL_TARGET
:-
planemo
==0.29.1
}
"
echo
"Begin Pulsar checks"
SCRIPT_DIR
=
"
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
"
PROJECT_DIR
=
"
$SCRIPT_DIR
/.."
TEMP_DIR
=
`
mktemp
-d
`
echo
"Setting up test directory
$TEMP_DIR
"
cd
"
$TEMP_DIR
"
mkdir
pulsar
cd
pulsar
echo
"Setting up virtualenv for Pulsar"
virtualenv venv
.
venv/bin/activate
# .venv\Scripts\activate if Windows
pip
install
pulsar-app
moo
=
`
echo
$PULSAR_INSTALL_TARGET
`
echo
$moo
echo
"Installing Pulsar using 'pip install
$PULSAR_INSTALL_TARGET
'"
pip
install
$PULSAR_INSTALL_TARGET
echo
"Running pulsar-config with default arguments"
pulsar-config
pulsar
--daemon
# just pulsar if Windows
echo
"Starting Pulsar in daemon mode."
pulsar
--daemon
echo
"Waiting for Pulsar to start."
sleep
2
echo
"Running a standalone Pulsar job."
pulsar-check
# runs a test job
echo
"Stopping Pulsar daemon."
pulsar
--stop-daemon
echo
"End Pulsar Checks"
echo
"Testing Galaxy Interactions"
pulsar
--daemon
# just pulsar if Windows
echo
"Testing Pulsar-Galaxy Interaction"
echo
"Starting Pulsar in daemon mode."
pulsar
--daemon
echo
"Waiting for Pulsar to start."
sleep
2
cd
..
echo
"Creating a virtual environment for Planemo to drive a test job."
virtualenv planemo-venv
.
planemo-venv/bin/activate
pip
install
planemo
echo
"Installing Pulsar using 'pip install
$PLANEMO_INSTALL_TARGET
'"
pip
install
"
$PLANEMO_INSTALL_TARGET
"
echo
"Setting up Planemo test tools."
planemo project_init
--template
=
demo test_tools
planemo
--verbose
test
--job_config_file
"
$SCRIPT_DIR
/galaxy_job_conf.xml"
test_tools
pulsar
--stop-daemon
echo
"Ending tests.
echo
"Running tool tests with Planemo through Pulsar"
planemo
--verbose
test
--job_config_file
"
$SCRIPT_DIR
/galaxy_job_conf.xml"
test_tools/cat.xml
echo
"Tests complete."
cd
pulsar
.
venv/bin/activate
echo
"Stopping Pulsar daemon."
pulsar
--stop-daemon
echo
"Ending tests."
This diff is collapsed.
Click to expand it.
tox.ini
+
7
−
0
View file @
655bd9ce
...
...
@@ -51,3 +51,10 @@ whitelist_externals = make
deps
=
-rrequirements.txt
sphinx
=
=1.2
[testenv:py27-install-wheel]
commands
=
make test-install-wheel
skip_install
=
True
whitelist_externals
=
make
deps
=
virtualenv
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment