瀏覽代碼

CI: avoid not needed builds, make AppVeyor upload src with submodules

Ilya Shipitsin 6 年之前
父節點
當前提交
971893c7b4
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 6 0
      .appveyor.yml
  2. 4 0
      .gitlab-ci.yml

+ 6 - 0
.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)

+ 4 - 0
.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