Skip to content

Commit

Permalink
Update circle.yml (#549)
Browse files Browse the repository at this point in the history
* Update circle.yml

* Update circle.yml
  • Loading branch information
bsideup authored Jan 21, 2018
1 parent fcb4481 commit 35a6dde
Showing 1 changed file with 7 additions and 36 deletions.
43 changes: 7 additions & 36 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
machine:
java:
version: oraclejdk8
environment:
DOCKER_HOST: tcp://127.0.0.1:2376
DOCKER_TLS_VERIFY: 0
MAVEN_OPTS: -Xmx512m
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
services:
- docker
pre:
- sudo curl -L -o /usr/bin/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.1-circleci'; sudo chmod 0755 /usr/bin/docker; true
dependencies:
override:
- "sudo docker -d -e lxc -s btrfs -H 0.0.0.0:2376 -H unix:///var/run/docker.sock --log-level=debug --debug=true":
background: true
- mvn -B install -DskipTests
test:
override:
- mvn -B test
# Run Docker-in-Docker tests
- |
DOCKER_HOST=unix:///var/run/docker.sock DOCKER_TLS_VERIFY= docker run --rm \
-v "$HOME/.m2":/root/.m2/ \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
openjdk:8-jre \
./mvnw -B -pl core test -Dtest=*GenericContainerRuleTest
- mvn -B test -f shade-test/pom.xml
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
notify:
webhooks:
- url: https://webhooks.gitter.im/e/1bf1c6aa3b2aa8408c5f
version: 2
executorType: machine
jobs:
build:
steps:
- checkout
- run: ./mvnw -B test

0 comments on commit 35a6dde

Please sign in to comment.