Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci test #2

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
72 changes: 72 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: 2
jobs:
build:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/build.sh
checkstyle:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/checkstyle.sh
rat:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/rat.sh
author:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/author.sh
findbugs:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/findbugs.sh
unit:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/unit.sh
acceptance:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/acceptance.sh
integration:
docker:
- image: vivekratnavel/hadoop-ozone-build:v1
steps:
- checkout
- run: ./hadoop-ozone/dev-support/checks/integration.sh
workflows:
version: 2
ci_run:
jobs:
- build
- rat
- author
- checkstyle:
requires:
- build
- findbugs:
requires:
- build
- unit:
requires:
- build
- acceptance:
requires:
- build
- integration:
requires:
- build
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
env:
global:
- DOCKER_COMPOSE_VERSION=1.24.1
- PROTOC_ZIP=protobuf-2.5.0.tar.gz
sudo: false
cache:
directories:
- $HOME/.m2
services:
- docker
before_script:
- docker --version
- wget https://github.com/google/protobuf/releases/download/v2.5.0/$PROTOC_ZIP
- tar xvf $PROTOC_ZIP
- rm -f $PROTOC_ZIP
- cd protobuf-2.5.0
- ./autogen.sh
- ./configure --prefix=/usr
- make
- make install
- protoc --version
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
script:
- ./hadoop-ozone/dev-support/checks/checkstyle.sh
- ./hadoop-ozone/dev-support/checks/rat.sh
- ./hadoop-ozone/dev-support/checks/author.sh
- ./hadoop-ozone/dev-support/checks/build.sh
- ./hadoop-ozone/dev-support/checks/acceptance.sh
branches:
only:
- master