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

Move from Travis CI to Circle CI #165

Merged
merged 6 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 158 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
version: 2.1

####################
# Templates
####################

executors:
scala_212:
docker:
- image: circleci/openjdk:8-jdk
environment:
SCALA_VERSION: 2.12.8
scala_211:
docker:
- image: circleci/openjdk:8-jdk
environment:
SCALA_VERSION: 2.11.12

commands:
build:
parameters:
build-steps:
description: "build steps"
type: steps
default: []
steps:
- checkout
- restore_cache:
keys:
- v4-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "build.sbt" }}
- v4-dependencies-
- run:
command: |
sbt clean "project $TEST_PROJECT" scalastyle test:scalastyle coverage test "project root" coverageReport
- run:
command: bash <(curl -s https://codecov.io/bash) -cF $TEST_PROJECT
- save_cache:
key: v4-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ checksum "build.sbt" }}
paths:
- "~/.ivy2/cache"
- "~/.sbt"


####################
# Jobs
####################

jobs:
common_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolCommon
steps:
- build
scalacheck_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolScalacheck
steps:
- build
diffy_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolDiffy
steps:
- build
sampling_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolSampling
steps:
- build
shapeless_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolShapeless
steps:
- build
cli_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolCli
steps:
- build
examples_212:
executor: scala_212
environment:
TEST_PROJECT=ratatoolExamples
steps:
- build
common_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolCommon
steps:
- build
scalacheck_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolScalacheck
steps:
- build
diffy_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolDiffy
steps:
- build
sampling_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolSampling
steps:
- build
shapeless_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolShapeless
steps:
- build
cli_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolCli
steps:
- build
examples_211:
executor: scala_211
environment:
TEST_PROJECT=ratatoolExamples
steps:
- build


####################
# Workflows
####################

workflows:
version: 2.1

# Per commit build
build:
jobs:
- common_212
- scalacheck_212
- diffy_212
- sampling_212
- shapeless_212
- cli_212
- examples_212
- common_211
- scalacheck_211
- diffy_211
- sampling_211
- shapeless_211
- cli_211
- examples_211
41 changes: 0 additions & 41 deletions .travis.yml

This file was deleted.

8 changes: 6 additions & 2 deletions ratatool-common/src/main/avro/TestRecord.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@
{"name": "double_field", "type": "double"},
{"name": "boolean_field", "type": "boolean"},
{"name": "string_field", "type": "string"},
{"name": "fixed_field", "type": {"type": "fixed", "size": 16, "name": "UUID"}},
{"name": "enum_field", "type": {"type": "enum", "name": "ABTest", "symbols": ["A", "B"]}},
{"name": "fixed_field", "type": {"type": "fixed",
"namespace": "com.spotify.ratatool.avro.specific",
"size": 16, "name": "UUID"}},
{"name": "enum_field", "type": {"type": "enum",
"namespace": "com.spotify.ratatool.avro.specific",
"name": "ABTest", "symbols": ["A", "B"]}},
{"name": "map_field", "type": {"type": "map", "values": "int"}},
{"name": "bytes_field", "type": "bytes" }
]
Expand Down