-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
44 lines (41 loc) · 1.36 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 2
jobs:
build:
docker:
- image: openjdk:8
working_directory: ~/embulk-filter-hash
steps:
- checkout
- restore_cache:
keys:
- v1-gradle-{{ checksum "build.gradle" }}
- v1-gradle-
- run: ./gradlew checkstyle
- run: ./gradlew check --info
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit
- save_cache:
paths:
- "~/.gradle"
- "~/.m2"
key: v1-gradle-{{ checksum "build.gradle" }}
- deploy:
name: Push Gem to RubyGems.org and bump up
command: |
if [ "${CIRCLE_BRANCH}" == "release" ]; then
mkdir -p ~/.gem
curl -f -u $RUBYGEMS_USER:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
git config --global user.email "[email protected]"
git config --global user.name "kamatama41"
git checkout master
git reset --hard origin/master
./gradlew release -Prelease.useAutomaticVersion=true
fi