Skip to content

Commit

Permalink
Add CI (#4)
Browse files Browse the repository at this point in the history
* Add jcenter repository
  • Loading branch information
Giovanni Toraldo authored Sep 27, 2019
1 parent 42a0cf7 commit ab60861
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2.1

orbs:
maven: cloudesire/[email protected]

jobs:
build:
docker:
- image: openjdk:8-jdk
environment:
- BASE_BUILD_NUM: 0

environment:
MAVEN_OPTS: "-Xmx2048m"

steps:
- checkout

- setup_remote_docker:
version: 18.09.3

- run:
name: Install Docker client
command: |
set -x
VER="18.09.3"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
- maven/with_cache:
mvn_path: ./mvnw
steps:
- run:
name: Build
command: ./mvnw -B install

- maven/aggregate_test_results

workflows:
version: 2

build:
jobs:
- build

nightly:
jobs:
- build
triggers:
- schedule:
cron: "0 6 * * *"
filters:
branches:
only: master
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,11 @@
</plugins>
</build>

<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>

</project>

0 comments on commit ab60861

Please sign in to comment.