.gitlab-ci.yml 349 Bytes
Newer Older
Farley's avatar
Farley committed
1 2 3
stages:
- build
- test
4

Farley's avatar
Farley committed
5 6 7
bundle install:
  image: ruby:2.2
  script:
Farley's avatar
Farley committed
8
  - mkdir cache
Farley's avatar
Farley committed
9 10 11 12
  - echo "test" > cache/test1
  - echo "test" > cache/test2
  - ls -la cache/
  stage: build
Farley's avatar
Farley committed
13
  artifacts:
Farley's avatar
Farley committed
14 15
    paths:
    - cache/
Farley's avatar
Farley committed
16 17
    expire_in: 20 minutes

18

Farley's avatar
Farley committed
19 20 21
test syntax:
  image: ruby:2.2
  stage: test
22
  script:
Farley's avatar
Farley committed
23
  - ls -la cache/
Farley's avatar
Farley committed
24 25
  dependencies:
  - bundle install