diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-15 12:18:46 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-18 13:17:48 +0200 |
commit | b7946b50fc1b23b1974f7d0306c06f6d92cc8466 (patch) | |
tree | 8f2f9980b6bf28b8d48d4ad4e7a04e983e52cbba /spec/support | |
parent | b578fbfb8572860490cdfd0163bfbf5f999bb1e6 (diff) | |
download | gitlab-ce-b7946b50fc1b23b1974f7d0306c06f6d92cc8466.tar.gz |
Read job variables directly from gitlab CI config
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/gitlab_stubs/gitlab_ci.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/support/gitlab_stubs/gitlab_ci.yml b/spec/support/gitlab_stubs/gitlab_ci.yml index a5b256bd3ec..e55a61b2b94 100644 --- a/spec/support/gitlab_stubs/gitlab_ci.yml +++ b/spec/support/gitlab_stubs/gitlab_ci.yml @@ -4,7 +4,7 @@ services: before_script: - gem install bundler - - bundle install + - bundle install - bundle exec rake db:create variables: @@ -17,7 +17,7 @@ types: rspec: script: "rake spec" - tags: + tags: - ruby - postgres only: @@ -26,27 +26,32 @@ rspec: spinach: script: "rake spinach" allow_failure: true - tags: + tags: - ruby - mysql except: - tags staging: + variables: + KEY1: value1 + KEY2: value2 script: "cap deploy stating" type: deploy - tags: + tags: - ruby - mysql except: - stable production: + variables: + DB_NAME: mysql type: deploy - script: + script: - cap deploy production - cap notify - tags: + tags: - ruby - mysql only: |