mirror of https://github.com/nmasse-itix/liche.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: golang
|
|
working_directory: /go/src/github.com/raviqqe/liche
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker
|
|
- run:
|
|
name: Setup
|
|
command: |
|
|
apt -y update --fix-missing
|
|
apt -y install rake
|
|
apt -y install bundler rake
|
|
- run:
|
|
name: Dependencies
|
|
command: rake deps
|
|
- run:
|
|
name: Lint
|
|
command: rake lint
|
|
- run:
|
|
name: Unit Test
|
|
command: |
|
|
rake unit_test
|
|
curl -sSL https://codecov.io/bash | bash
|
|
- run:
|
|
name: Integration Test
|
|
command: rake integration_test
|
|
- run:
|
|
name: Build
|
|
command: rake build
|
|
- run:
|
|
name: Install
|
|
command: rake install
|
|
- persist_to_workspace:
|
|
root: .
|
|
paths: [bin/liche, Dockerfile.test]
|
|
|
|
docker:
|
|
docker:
|
|
- image: docker:17.05.0-ce-git
|
|
steps:
|
|
- attach_workspace: { at: . }
|
|
- setup_remote_docker
|
|
- run: docker build -f Dockerfile.test -t raviqqe/docker-liche:latest .
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- build
|
|
- docker: { requires: [build] }
|
|
|