Commit a06d951c authored by Alessandro Frigeri's avatar Alessandro Frigeri
Browse files

Update .gitlab-ci.yml file

parent 525f77e5
Loading
Loading
Loading
Loading
Loading
+11 −15
Original line number Original line Diff line number Diff line
# The Docker image that will be used to build your app
default:
image: ruby:2.7
  image: ruby:2.6
# Functions that should be executed before the build script is run

  services:
    - postgres:11.7

  before_script:
  before_script:
  - "services:     - postgres:11.7"
    - bundle install
pages:

test:
  script:
  script:
    - "before_script:     - bundle install"
    - bundle exec rake spec
  artifacts:
 No newline at end of file
    paths:
      # The folder that contains the files to be exposed at the Page URL
      - public
  rules:
    # This ensures that only pushes to the default branch will trigger
    # a pages deploy
    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH