forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully automate dev setup with Gitpod
This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. Includes vscode gitpod config for debugging and testing.
- Loading branch information
Showing
4 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
github: | ||
prebuilds: | ||
# enable for the master/default branch (defaults to true) | ||
master: true | ||
# enable for all branches in this repo (defaults to false) | ||
branches: true | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: true | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: true | ||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true) | ||
addComment: false | ||
# add a "Review in Gitpod" button to pull requests (defaults to false) | ||
addBadge: false | ||
# add a label once the prebuild is ready to pull requests (defaults to false) | ||
addLabel: false | ||
image: gitpod/workspace-postgres | ||
tasks: | ||
- init: > | ||
cp .vscode/settings_gitpod.json .vscode/settings.json && | ||
cp .vscode/launch_gitpod.json .vscode/launch.json && | ||
pip install psycopg2 && | ||
pip install -r lib/galaxy/dependencies/dev-requirements.txt && | ||
createdb galaxy && | ||
make client | ||
- command: cp config/galaxy.yml.sample config/galaxy.yml | ||
- command: make client-watch | ||
# Ports to expose on workspace startup (optional) | ||
ports: | ||
- port: 8000 | ||
vscode: | ||
extensions: | ||
- ms-python.python | ||
- ms-python.vscode-pylance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GALAXY_TEST_TOOL_CONF="lib/galaxy/config/sample/tool_conf.xml.sample,test/functional/tools/samples_tool_conf.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "GalaxyFastAPI uvicorn", | ||
"type": "python", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": ["--app-dir", "lib", "--factory", "galaxy.webapps.galaxy.fast_factory:factory"], | ||
"env": { | ||
"GALAXY_CONFIG_FILE": "${workspaceFolder}/config/galaxy.yml", | ||
"GALAXY_CONDA_AUTO_INIT": "false", | ||
"GALAXY_CONFIG_TOOL_CONFIG_FILE": "lib/galaxy/config/sample/tool_conf.xml.sample,test/functional/tools/samples_tool_conf.xml", | ||
"GALAXY_CONFIG_DATABASE_CONNECTION": "postgresql://localhost/galaxy" | ||
} | ||
}, | ||
{ | ||
"name": "Tool test framework", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/.venv/bin/pytest", | ||
"args": [ | ||
"test/functional/test_toolbox_pytest.py", | ||
"-m", | ||
"tool", | ||
"-k", | ||
"job_properties_test_2" | ||
] | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"--doctest-modules", | ||
"lib/galaxy_test/api/", | ||
"lib/galaxy/datatypes", | ||
"test/unit", | ||
"test/integration", | ||
"lib/galaxy_test/selenium/" | ||
], | ||
"python.testing.pytestEnabled": true, | ||
"python.envFile": "${workspaceFolder}/.vscode/.test.env" | ||
} | ||
|