|
| 1 | +# Copyright (c) 2016 Cinchapi Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# 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 |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# This script will update the copyright notices on every file to include |
| 16 | +# the current year (e.g. 2013-2014 will become 2013-2015, etc). This only |
| 17 | +# needs to be run once a year. The script is smart enough to get the current |
| 18 | +# year without being told, so it is a noop if it is run multiple times in |
| 19 | +# the same year |
| 20 | + |
| 21 | +machine: |
| 22 | + environment: |
| 23 | + GRADLE_OPTS: "-Djenkins=true" |
| 24 | + TERM: dumb |
| 25 | + CONTAINER_BUILD: true |
| 26 | + java: |
| 27 | + version: oraclejdk8 |
| 28 | + |
| 29 | +# Skip download dependencies because they will be downloaded during the test |
| 30 | +# step of the build. |
| 31 | +dependencies: |
| 32 | + override: |
| 33 | + - echo |
| 34 | + |
| 35 | +# During the test step, build the installer and upload it to the snapshot |
| 36 | +# repository |
| 37 | +test: |
| 38 | + pre: |
| 39 | + - git clone [email protected]:cinchapi/sonatype-credentials.git |
| 40 | + - cp sonatype-credentials/gradle.properties . |
| 41 | + - cp sonatype-credentials/secring.gpg /home/ubuntu |
| 42 | + override: |
| 43 | + - "./gradlew clean build uploadArchives" |
| 44 | + post: |
| 45 | + - mkdir -p $CIRCLE_TEST_REPORTS/junit/ |
| 46 | + - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \; |
| 47 | + - find . -type f -regex ".*/build/libs/.*jar" -exec cp {} $CIRCLE_ARTIFACTS \; |
0 commit comments