Skip to content
Open
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
File renamed without changes.
5 changes: 3 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

echo "Download gem installer"
gem install specific_install

echo "Remove old gems"
gem uninstall bmx_api_ruby
gem uninstall bmx_cl_ruby
gem uninstall bmx_cl_ruby

echo "Install/Upgrade Bugmark CLI"
gem specific_install http://github.com/bugmark/bmx_api_ruby
gem specific_install http://github.com/bugmark/bmx_cl_ruby

echo "Create configuration for localhost"
echo "(You'll have to tweak the hostname and scheme)"
bmx config set --usermail=admin@bugmark.net --password=bugmark
bmx config set --usermail=admin@bugmark.net --password=bugmark

bmx help
1 change: 1 addition & 0 deletions demos/buy_bot
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down
1 change: 1 addition & 0 deletions demos/issue_count
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down
1 change: 1 addition & 0 deletions demos/oracle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down
2 changes: 2 additions & 0 deletions demos/spec/issue_count_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0

require 'json'

describe "issue_count" do
Expand Down
1 change: 1 addition & 0 deletions forecast1/all_rebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

echo "----- FORECAST1 TOTAL REBUILD ---------------------"
echo "START `date`"
Expand Down
1 change: 1 addition & 0 deletions forecast1/clear
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host rebuild --affirm=destroy_all_data
2 changes: 1 addition & 1 deletion forecast1/contract_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'pry'
require 'json'
Expand All @@ -11,4 +12,3 @@ offers.each do |uuid|
puts cmd
puts `#{cmd}`
end

1 change: 1 addition & 0 deletions forecast1/count
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host counts --color
2 changes: 1 addition & 1 deletion forecast1/offer_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'
require 'time'
Expand Down Expand Up @@ -111,4 +112,3 @@ end

gen_offers(found_opts , "fixed")
gen_offers(unfound_opts, "unfixed")

1 change: 1 addition & 0 deletions forecast1/repo_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down
2 changes: 2 additions & 0 deletions forecast1/spec/rebuild_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0

require 'json'

describe "all_rebuild" do
Expand Down
1 change: 1 addition & 0 deletions forecast1/user_load.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx user create --balance=1000 --password=bugmark --usermail=user1@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=user2@bugmark.net
Expand Down
1 change: 1 addition & 0 deletions history1/all
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

echo "----- HISTORY1 ---------------------"
echo "START `date`"
Expand Down
1 change: 1 addition & 0 deletions history1/clear
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host rebuild --affirm=destroy_all_data --with_day_offset=-7
1 change: 1 addition & 0 deletions history1/count
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host counts --color
1 change: 1 addition & 0 deletions history1/offer_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'
require 'time'
Expand Down
1 change: 1 addition & 0 deletions history1/repo_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down
2 changes: 2 additions & 0 deletions history1/spec/history_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0

require 'json'

# describe "all_rebuild" do
Expand Down
1 change: 1 addition & 0 deletions history1/user_load.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx user create --balance=1000 --password=bugmark --usermail=user1@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=user2@bugmark.net
Expand Down
3 changes: 2 additions & 1 deletion rebuild/all
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

abort() {
echo "Usage: all <GitHub|Test>"
Expand All @@ -10,7 +11,7 @@ abort() {

echo "----- BUGMARK-CLI TOTAL REBUILD TEST ---------------------"
echo "START `date`"
( echo Clear Old Data ; ./rebuild/clear ) &&
( echo Clear Old Data ; ./rebuild/clear ) &&
( echo Load User Data ; ./rebuild/user_load ) &&
( echo Load Test Repo ; ./rebuild/repo_load $1 ) &&
( echo Load Offers ; ./rebuild/offer_load ) &&
Expand Down
1 change: 1 addition & 0 deletions rebuild/clear
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host rebuild --affirm=destroy_all_data
bmx config set --usermail=admin@bugmark.net --password=bugmark
2 changes: 1 addition & 1 deletion rebuild/contract_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'pry'
require 'json'
Expand All @@ -11,4 +12,3 @@ offers.each do |uuid|
puts cmd
puts `#{cmd}`
end

1 change: 1 addition & 0 deletions rebuild/count
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx host counts --color
2 changes: 1 addition & 1 deletion rebuild/offer_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'
require 'time'
Expand Down Expand Up @@ -111,4 +112,3 @@ end

gen_offers(found_opts , "fixed")
gen_offers(unfound_opts, "unfixed")

2 changes: 1 addition & 1 deletion rebuild/repo_load
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'json'

Expand Down Expand Up @@ -30,4 +31,3 @@ case REPO_TYPE
when 'GitHub' then gen_github_repo
when 'Test' then gen_test_repo
end

2 changes: 2 additions & 0 deletions rebuild/spec/rebuild_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0

require 'json'

describe "rebuild" do
Expand Down
11 changes: 6 additions & 5 deletions rebuild/user_load
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0

bmx user create --balance=1000 --password=bugmark --usermail=test1@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=test2@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=test3@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=joe@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=jane@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=test1@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=test2@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=test3@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=joe@bugmark.net
bmx user create --balance=1000 --password=bugmark --usermail=jane@bugmark.net
1 change: 1 addition & 0 deletions util/dates
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# SPDX-License-Identifier: MPL-2.0

require 'date'
require 'time'
Expand Down