From 971893c7b4ba0af8e329915ba5a84bafd42f21b3 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 1 Dec 2018 23:19:18 +0500 Subject: [PATCH] CI: avoid not needed builds, make AppVeyor upload src with submodules --- .appveyor.yml | 6 ++++++ .gitlab-ci.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index ee74e9ff..c2fba8c4 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,6 +11,11 @@ configuration: Release skip_branch_with_pr: true clone_depth: 1 +skip_commits: + files: + - .travis.yml + - .gitlab-ci.yml + init: - ps: Update-AppveyorBuild -Version "build-$env:APPVEYOR_BUILD_NUMBER-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))" @@ -71,6 +76,7 @@ for: only: - image: Ubuntu1804 before_build: + - sh: "if [ ${APPVEYOR_REPO_TAG} == \"true\" ]; then tar --exclude=.git -czf /tmp/${APPVEYOR_REPO_TAG_NAME}.tar.gz . && appveyor PushArtifact /tmp/${APPVEYOR_REPO_TAG_NAME}.tar.gz \nfi" - ./configure build_script: - make package -C tmp -j $(nproc || sysctl -n hw.ncpu || echo 4) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32e0de4e..6f0a5cdb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,10 @@ .ubuntu: &ubuntu_def variables: CMAKE_VERSION: 3.9.6 + except: + changes: + - .appveyor.yml + - .travis.yml before_script: - REPOSITORY="$PWD" && cd .. - apt-get update && apt-get install -y dpkg-dev wget g++ gcc libncurses5-dev libreadline-dev libssl-dev make zlib1g-dev git file