diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-03 19:46:59 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-03 19:46:59 +0300 |
commit | d7204d73a9ad0ea44fb1a2b51e6944c0461a2c39 (patch) | |
tree | 93b9f7a01894379b72e090fe56459caf38a495c1 /spec/models | |
parent | 94ae27312ad5816e8efc8d228faceb1d144e98ae (diff) | |
download | gitlab-ci-d7204d73a9ad0ea44fb1a2b51e6944c0461a2c39.tar.gz |
You should add runners to project. WHen runner added -> deploy key for runner added to gitlab project
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/build_spec.rb | 39 | ||||
-rw-r--r-- | spec/models/project_spec.rb | 38 | ||||
-rw-r--r-- | spec/models/runner_project_spec.rb | 16 | ||||
-rw-r--r-- | spec/models/runner_spec.rb | 11 |
4 files changed, 66 insertions, 38 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index c0969f7..a1891c8 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -1,3 +1,23 @@ +# == Schema Information +# +# Table name: builds +# +# id :integer not null, primary key +# project_id :integer +# ref :string(255) +# status :string(255) +# finished_at :datetime +# trace :text(2147483647) +# created_at :datetime not null +# updated_at :datetime not null +# sha :string(255) +# started_at :datetime +# tmp_file :string(255) +# before_sha :string(255) +# push_data :text +# runner_id :integer +# + require 'spec_helper' describe Build do @@ -32,22 +52,3 @@ describe Build do end - -# == Schema Information -# -# Table name: builds -# -# id :integer(4) not null, primary key -# project_id :integer(4) -# ref :string(255) -# status :string(255) -# finished_at :datetime -# trace :text(2147483647 -# created_at :datetime not null -# updated_at :datetime not null -# sha :string(255) -# started_at :datetime -# tmp_file :string(255) -# before_sha :string(255) -# - diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 354a7a7..002a9f9 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1,3 +1,22 @@ +# == Schema Information +# +# Table name: projects +# +# id :integer not null, primary key +# name :string(255) not null +# timeout :integer default(1800), not null +# scripts :text default(""), not null +# created_at :datetime not null +# updated_at :datetime not null +# token :string(255) +# default_ref :string(255) +# gitlab_url :string(255) +# always_build :boolean default(FALSE), not null +# polling_interval :integer +# public :boolean default(FALSE), not null +# ssh_url_to_repo :string(255) +# + require 'spec_helper' describe Project do @@ -61,25 +80,6 @@ end # gitlab_url :string(255) # always_build :boolean(1) default(FALSE), not null # polling_interval :integer(4) -# - - -# == Schema Information -# -# Table name: projects -# -# id :integer(4) not null, primary key -# name :string(255) not null -# path :string(255) not null -# timeout :integer(4) default(1800), not null -# scripts :text default(""), not null -# created_at :datetime not null -# updated_at :datetime not null -# token :string(255) -# default_ref :string(255) -# gitlab_url :string(255) -# always_build :boolean(1) default(FALSE), not null -# polling_interval :integer(4) # public :boolean(1) default(FALSE), not null # diff --git a/spec/models/runner_project_spec.rb b/spec/models/runner_project_spec.rb new file mode 100644 index 0000000..6428d8b --- /dev/null +++ b/spec/models/runner_project_spec.rb @@ -0,0 +1,16 @@ +# == Schema Information +# +# Table name: runner_projects +# +# id :integer not null, primary key +# runner_id :integer not null +# project_id :integer not null +# created_at :datetime not null +# updated_at :datetime not null +# + +require 'spec_helper' + +describe RunnerProject do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/runner_spec.rb b/spec/models/runner_spec.rb index ef04222..97d5e54 100644 --- a/spec/models/runner_spec.rb +++ b/spec/models/runner_spec.rb @@ -1,3 +1,14 @@ +# == Schema Information +# +# Table name: runners +# +# id :integer not null, primary key +# token :string(255) +# public_key :text +# created_at :datetime not null +# updated_at :datetime not null +# + require 'spec_helper' describe Runner do |