Skip to content
Commit c2c9236c authored by Dmytro Zaporozhets (DZ)'s avatar Dmytro Zaporozhets (DZ) 🌴
Browse files

Merge branch 'jobs_in_yml' into 'master'

CI configuration with .gitlab-ci.yml

https://dev.gitlab.org/gitlab/gitlab-ci/issues/245

Example:

```
# Refs to skip
skip_refs: “deploy*”

# Run before each script
before_script:
  - export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
  - gem install bundler
  - cp config/database.yml.mysql config/database.yml
  - cp config/gitlab.yml.example config/gitlab.yml
  - touch log/application.log
  - touch log/test.log
  - bundle install --without postgres production --jobs $(nproc)
  - bundle exec rake db:create RAILS_ENV=test

# Parallel jobs, each line is parallel build
jobs:
  - script: “rake spec”
    runner: “ruby,postgres”
    name: “Rspec”
  - script: “rake spinach”
    runner: “ruby,mysql”
    name: “Spinach”
    tags: true
    branches: false

# Parallel deploy jobs
deploy_jobs:
  “cap deploy production”
  “cap deploy staging”

```

See merge request !110
parents a5b1a3a5 27a3fe8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment