image: "hub.ricebook.net/base/centos:onbuild-eru-core-2016.09.02"
before_script:
  - "ln -s $CI_PROJECT_DIR $GOPATH/src/gitlab.ricebook.net/platform/core"
stages:
  - test
  - build
  - rpm
test:
  stage: test
  script:
    - "make test"
build:
  stage: build
  script:
    - make build
  artifacts:
    paths:
      - "eru-core"
    expire_in: 1 week
rpm:
  stage: rpm
  script:
    - "./make-rpm"
  dependencies:
    - "build"
  artifacts:
    paths:
      - "eru-core*.rpm"
    expire_in: 1 week



image: "hub.ricebook.net/base/centos:onbuild-eru-core-2016.11.28"
before_script:
  - "ln -s $CI_PROJECT_DIR $GOPATH/src/gitlab.ricebook.net/platform/core"
stages:
  - test
  - build
  - rpm
test:
  stage: test
  script:
    - "make test"
build:
  stage: build
  script:
    - make build
  artifacts:
    paths:
      - "eru-core"
    expire_in: 1 week
rpm:
  stage: rpm
  script:
    - "./make-rpm"
  dependencies:
    - "build"
  artifacts:
    paths:
      - "eru-core*.rpm"
    expire_in: 1 week



Revert "Revert "use new build image""
Revert "Revert "use new build image""

This reverts commit fc62bd26d28662d9de25fc319aad5b83010c155b.
