-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
179 additions
and
10 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
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
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,21 @@ | ||
--- | ||
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ | ||
tasks: | ||
- init: sh -x ./.gitpod/setup.sh | ||
command: pwd; sh -x /workspace/*/.gitpod/start.sh | ||
env: | ||
REDMINE_VERSION: '5.0-stable' | ||
|
||
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ | ||
ports: | ||
- port: 3000 | ||
onOpen: open-browser | ||
|
||
workspaceLocation: "./redmine" | ||
|
||
vscode: | ||
extensions: | ||
- bung87.rails | ||
- rebornix.ruby | ||
- aliariff.vscode-erb-beautify | ||
- mbessey.vscode-rufo |
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,19 @@ | ||
# Default setup is given for MySQL 5.7.7 or later. | ||
# Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end. | ||
# Line indentation must be 2 spaces (no tabs). | ||
|
||
production: | ||
adapter: sqlite3 | ||
database: db/redmine.sqlite3 | ||
|
||
development: | ||
adapter: sqlite3 | ||
database: db/redmine_dev.sqlite3 | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
adapter: sqlite3 | ||
database: db/redmine_test.sqlite3 | ||
|
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,11 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
}, | ||
{ | ||
"path": "../__PLUGIN__NAME" | ||
} | ||
], | ||
"settings": {} | ||
} |
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,2 @@ | ||
.vscode/launch.json | ||
/gitpod.code-workspace |
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,33 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
|
||
{ | ||
"name": "Rails server", | ||
"type": "Ruby", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/bin/rails", | ||
"args": [ | ||
"server" | ||
], | ||
"useBundler": true | ||
}, | ||
{ | ||
"name": "Plugin test", | ||
"type": "Ruby", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/bin/rake", | ||
"args": [ | ||
"redmine:plugins:test" | ||
], | ||
"env": { | ||
"RAILS_ENV": "test" | ||
}, | ||
"useBundler": true | ||
} | ||
] | ||
} |
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,30 @@ | ||
#!/bin/sh | ||
cd $(dirname "$0") || exit | ||
GITPODDIR=$(pwd) | ||
IGNOREDIR="$HOME"/.config/git | ||
mkdir -p "$IGNOREDIR" | ||
cp "$GITPODDIR"/ignore "$IGNOREDIR" | ||
cd .. | ||
BASEDIR=$(pwd) | ||
|
||
if [ -f Gemfile_for_test ]; then | ||
cp Gemfile_for_test Gemfile | ||
fi | ||
cd .. | ||
REDMINEDIR=$(pwd)/redmine | ||
if [ ! -d redmine ]; then | ||
git clone https://github.com/redmine/redmine.git -b "$REDMINE_VERSION" | ||
cd redmine || exit | ||
mv .git .git.org | ||
cd "$REDMINEDIR"/plugins || exit | ||
ln -s "$BASEDIR" . | ||
cp "$GITPODDIR"/database.yml "$REDMINEDIR"/config/ | ||
mkdir "$REDMINEDIR"/.vscode | ||
cd "$REDMINEDIR"/.vscode || exit | ||
ln -s "$GITPODDIR"/launch.json . | ||
echo "gem 'ruby-debug-ide'" >> "$REDMINEDIR"/Gemfile | ||
echo "gem 'debase'" >> "$REDMINEDIR"/Gemfile | ||
sed -i 's/^end$/ config.hosts.clear\nend/' "$REDMINEDIR"/config/environments/development.rb | ||
fi | ||
|
||
|
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,17 @@ | ||
#!/bin/sh | ||
|
||
REDMINEDIR=/workspace/redmine | ||
cd $(dirname "$0") || exit | ||
GITPODDIR=$(pwd) | ||
cd .. | ||
BASEDIR=$(pwd) | ||
PLUGIN_NAME=$(basename "$BASEDIR") | ||
|
||
cd "$REDMINEDIR" || exit | ||
sed "s/__PLUGIN__NAME/$PLUGIN_NAME/" "$GITPODDIR"/gitpod.code-workspace > "$REDMINEDIR"/gitpod.code-workspace | ||
gem install ruby-debug-ide | ||
bundle install --path vendor/bundle | ||
bundle exec rake db:migrate | ||
bundle exec rake redmine:plugins:migrate | ||
bundle exec rake db:migrate RAILS_ENV=test | ||
bundle exec rake redmine:plugins:migrate RAILS_ENV=test |
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
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
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
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
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
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