mirror of
https://github.com/Maschell/StreamingPluginClient.git
synced 2024-11-27 23:14:16 +01:00
Update circle ci
This commit is contained in:
parent
62a2027105
commit
325df0bd3b
@ -1,18 +0,0 @@
|
||||
machine:
|
||||
java:
|
||||
version: oraclejdk8
|
||||
|
||||
compile:
|
||||
override:
|
||||
- mvn package -Dci-build=true
|
||||
|
||||
general:
|
||||
artifacts:
|
||||
- "ci"
|
||||
|
||||
deployment:
|
||||
nightlies:
|
||||
branch: master
|
||||
commands:
|
||||
- go get github.com/tcnksm/ghr
|
||||
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -prerelease -b 'Nightly release - Use caution! We recommend downloading a stable release from the README.' `echo "v0.1-nightly-$(git rev-parse --short=7 HEAD)"` ci/
|
60
.circleci/config.yml
Normal file
60
.circleci/config.yml
Normal file
@ -0,0 +1,60 @@
|
||||
# Java Maven CircleCI 2.0 configuration file
|
||||
#
|
||||
# Check https://circleci.com/docs/2.0/language-java/ for more details
|
||||
#
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
# specify the version you desire here
|
||||
- image: circleci/openjdk:8-jdk
|
||||
|
||||
# Specify service dependencies here if necessary
|
||||
# CircleCI maintains a library of pre-built images
|
||||
# documented at https://circleci.com/docs/2.0/circleci-images/
|
||||
# - image: circleci/postgres:9.4
|
||||
|
||||
working_directory: ~/repo
|
||||
|
||||
environment:
|
||||
# Customize the JVM maximum heap limit
|
||||
MAVEN_OPTS: -Xmx3200m
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "pom.xml" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- v1-dependencies-
|
||||
|
||||
- run:
|
||||
command: |
|
||||
mvn dependency:go-offline
|
||||
sudo apt-get update
|
||||
sudo apt-get -y upgrade
|
||||
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
|
||||
sudo tar -xvf go1.10.linux-amd64.tar.gz
|
||||
sudo mv go /usr/local
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- ~/.m2
|
||||
key: v1-dependencies-{{ checksum "pom.xml" }}
|
||||
|
||||
- run: mvn package -Dci-build=true
|
||||
|
||||
- deploy:
|
||||
name: Deploy
|
||||
command: |
|
||||
mkdir ~/go
|
||||
export GOPATH=~/go
|
||||
export GOROOT=/usr/local/go
|
||||
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
go get github.com/tcnksm/ghr
|
||||
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -prerelease -b 'Nightly release - Use caution!' `echo "v0.0.1-nightly-$(git rev-parse --short=7 HEAD)"` ci/
|
||||
|
||||
- store_artifacts:
|
||||
path: ci/
|
Loading…
Reference in New Issue
Block a user