mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Remove unnecesary action folder adn turn off travis for the branch
This commit is contained in:
7
.github/actions/prepare/action.yml
vendored
7
.github/actions/prepare/action.yml
vendored
@@ -1,7 +0,0 @@
|
|||||||
name: "prepare"
|
|
||||||
description: "Prepare environment"
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- shell: bash
|
|
||||||
run: ${{ github.action_path }}/prepare.sh
|
|
31
.github/actions/prepare/prepare.sh
vendored
31
.github/actions/prepare/prepare.sh
vendored
@@ -1,31 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
M2_REPO_DIR="$HOME/.m2/repository"
|
|
||||||
M2_REPO_TTL_MINUTES=10080
|
|
||||||
M2_REPO_EXPIRED="$(find $M2_REPO_DIR -type f -mmin +$M2_REPO_TTL_MINUTES 2>/dev/null | head -n 1 | wc -l)"
|
|
||||||
M2_REPO_FILE_COUNT="$(find $M2_REPO_DIR -type f 2>/dev/null | wc -l)"
|
|
||||||
|
|
||||||
ORG_ALFRESCO_M2_REPO_DIR="$M2_REPO_DIR/org/alfresco"
|
|
||||||
ORG_ALFRESCO_M2_REPO_TTL_MINUTES=1440
|
|
||||||
ORG_ALFRESCO_M2_REPO_EXPIRED="$(find $ORG_ALFRESCO_M2_REPO_DIR -type f -mmin +$ORG_ALFRESCO_M2_REPO_TTL_MINUTES 2>/dev/null | head -n 1 | wc -l)"
|
|
||||||
|
|
||||||
echo "Files in the maven repo: $M2_REPO_FILE_COUNT"
|
|
||||||
|
|
||||||
if [ $ORG_ALFRESCO_M2_REPO_EXPIRED -eq 1 ];then
|
|
||||||
echo "Invalidating org/alfresco maven local cache."
|
|
||||||
rm -rf "$ORG_ALFRESCO_M2_REPO_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $M2_REPO_EXPIRED -eq 1 ];then
|
|
||||||
echo "Invalidating maven local cache."
|
|
||||||
rm -rf "$M2_REPO_DIR"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $M2_REPO_FILE_COUNT -lt 1000 ] || [ $ORG_ALFRESCO_M2_REPO_EXPIRED -eq 1 ] || [ $M2_REPO_EXPIRED -eq 1 ];then
|
|
||||||
echo "Populating maven cache."
|
|
||||||
export BUILD_PROFILES="-Pall-tas-tests,ags"
|
|
||||||
export BUILD_OPTIONS="-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.artifact.threads=8"
|
|
||||||
source "$(dirname "${BASH_SOURCE[0]}")/build.sh"
|
|
||||||
fi
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -20,12 +20,12 @@ jobs:
|
|||||||
- name: "Clean cache"
|
- name: "Clean cache"
|
||||||
run: bash scripts/travis/cleanup_cache.sh
|
run: bash scripts/travis/cleanup_cache.sh
|
||||||
- name: "Prepare environment"
|
- name: "Prepare environment"
|
||||||
- uses: ./.github/actions/prepare
|
run: bash scripts/travis/prepare.sh
|
||||||
|
|
||||||
veracode:
|
veracode:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- pre-commit
|
- prepare
|
||||||
if: >
|
if: >
|
||||||
(github.ref_name == 'master' || contains(github.ref_name, 'release')) &&
|
(github.ref_name == 'master' || contains(github.ref_name, 'release')) &&
|
||||||
! contains(github.event.head_commit.message, '[skip build]')
|
! contains(github.event.head_commit.message, '[skip build]')
|
||||||
|
@@ -20,9 +20,6 @@ before_cache: bash scripts/travis/cleanup_cache.sh
|
|||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- /release\/.*/
|
|
||||||
- /feature\/.*/
|
|
||||||
- /fix\/.*/
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
Reference in New Issue
Block a user