Skip to content

Commit ec0b80f

Browse files
Tommy Ludwigadriancole
Tommy Ludwig
authored andcommitted
Migrate to CircleCI 2.0
Convert to the CircleCI 2.0 format. Switches from Zulu to CircleCI's OpenJDK Docker image.
1 parent 911b963 commit ec0b80f

File tree

3 files changed

+62
-73
lines changed

3 files changed

+62
-73
lines changed

.circleci/config.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#
2+
# Copyright 2015-2018 The OpenZipkin Authors
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5+
# in compliance with the License. You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software distributed under the License
10+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11+
# or implied. See the License for the specific language governing permissions and limitations under
12+
# the License.
13+
#
14+
15+
# NOTE: Travis tests Elasticsearch and MySQL using Docker, and Kafka manually. We don't redundantly test them here
16+
version: 2
17+
jobs:
18+
build:
19+
environment:
20+
# Quiet Maven invoker logs (Downloading... when running zipkin-server/src/it)
21+
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
22+
docker:
23+
# Use java 9 here and 1.8 in travis (so that we test both)
24+
- image: circleci/openjdk:9-jdk
25+
steps:
26+
- checkout
27+
28+
- restore_cache:
29+
key: offline-dependencies-{{ checksum "pom.xml" }}
30+
31+
- run:
32+
name: Download dependencies
33+
command: |
34+
sudo apt-get install xsltproc
35+
./circleci/go-offline.sh
36+
./mvnw frontend:install-node-and-npm frontend:npm -pl zipkin-ui
37+
38+
- save_cache:
39+
key: offline-dependencies-{{ checksum "pom.xml" }}
40+
paths:
41+
- ~/.m2
42+
- zipkin-ui/node_modules
43+
44+
- run:
45+
name: Tests
46+
command: |
47+
# skip license on circleci due to #1512
48+
./mvnw -Dtest="*Test" -DfailIfNoTests=false test -Dlicense.skip=true
49+
50+
- run:
51+
name: Collect test reports
52+
when: always
53+
command: |
54+
mkdir -p /tmp/test-reports/junit/
55+
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} /tmp/test-reports/junit/ \;
56+
57+
- store_test_results:
58+
path: /tmp/test-reports/
59+
60+
notify:
61+
webhooks:
62+
- url: https://webhooks.gitter.im/e/e63be97ca10d2fbd09c3

circle.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

circleci/test.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)