From 39ec068afc0c3582bb0d4e38e411619cf9af7820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com> Date: Sat, 9 May 2020 22:28:57 +0800 Subject: [PATCH] :wrench: Github actions. --- .travis.yml | 26 -------------------------- README.md | 2 +- ci/deploy_snapshot.sh | 18 ------------------ 3 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 .travis.yml delete mode 100644 ci/deploy_snapshot.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e594109..00000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -sudo: false - -language: java - -jdk: - - openjdk8 - - openjdk11 - -os: - - linux - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - -install: ./gradlew --version - -script: ./gradlew build --refresh-dependencies --no-daemon --continue - -after_success: - - chmod u+x ./ci/deploy_snapshot.sh - - ./ci/deploy_snapshot.sh diff --git a/README.md b/README.md index fc5a749c..e902e837 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## mica(云母) -[![Build Status](https://www.travis-ci.org/lets-mica/mica.svg?branch=master)](https://www.travis-ci.org/lets-mica/mica) +[![Java CI](https://github.com/lets-mica/mica/workflows/Java%20CI/badge.svg)](https://github.com/lets-mica/mica/actions) ![JAVA 8](https://img.shields.io/badge/JDK-1.8+-brightgreen.svg) [![Mica Maven release](https://img.shields.io/nexus/r/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://mvnrepository.com/artifact/net.dreamlu/mica-bom) [![Mica maven snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://oss.sonatype.org/content/repositories/snapshots/net/dreamlu/) diff --git a/ci/deploy_snapshot.sh b/ci/deploy_snapshot.sh deleted file mode 100644 index 1d6dbd23..00000000 --- a/ci/deploy_snapshot.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e -u - -function gradle_publish() { - ./gradlew clean publish -} - -if [ "$TRAVIS_REPO_SLUG" == "lets-mica/mica" ] && \ - [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] && \ - [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ - [ "$TRAVIS_BRANCH" == "master" ]; then - echo "Publishing To Maven snapshot..." - - gradle_publish - - echo "Maven snapshot published." -fi -- GitLab