aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-07-16 00:22:17 +0200
committerRobert Tari <robert@tari.in>2021-07-16 00:22:17 +0200
commit4ea1bf99b7f20aceb32dbe8d7cfa5b7f23992fe7 (patch)
tree44ed85403a4b39dcc97157c08ad3519dbd75e744
parent3ea5f607a89a707f20fff5f36afcabe1fd9e9ebf (diff)
parent65d0a1e3e59039763f7f44bce5c750e7232212a1 (diff)
downloadayatana-indicator-session-4ea1bf99b7f20aceb32dbe8d7cfa5b7f23992fe7.tar.gz
ayatana-indicator-session-4ea1bf99b7f20aceb32dbe8d7cfa5b7f23992fe7.tar.bz2
ayatana-indicator-session-4ea1bf99b7f20aceb32dbe8d7cfa5b7f23992fe7.zip
Merge branch 'sunweaver-pr/limit-ci-builds'
Attributes GH PR #46: https://github.com/AyatanaIndicators/ayatana-indicator-session/pull/46
-rw-r--r--.travis.yml87
1 files changed, 45 insertions, 42 deletions
diff --git a/.travis.yml b/.travis.yml
index 5382638..0b62ee5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,43 +1,46 @@
# vim: set ts=2 sts=2 sw=2 expandtab :
-dist: bionic
-language: shell
-os: linux
-
-arch:
- - amd64
- - ppc64le
-
-services:
- - docker
-
-addons:
- apt:
- packages:
- - python3-pip
- - python3-setuptools
-
-before_install:
- # let's use the MATE project's docker build script...
- - curl -Ls -o docker-build https://github.com/AyatanaIndicators/ayatana-dev-scripts/raw/master/travis/docker-build
- - chmod +x docker-build
-
-install:
- - pip3 install wheel
- - pip3 install PyGithub
- - ./docker-build --name ${DISTRO} --config .build.yml --install
-
-script:
- - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts
-
-env:
-# temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56
-# - DISTRO="archlinux:latest"
- - DISTRO="debian:testing"
- - DISTRO="debian:stable"
-# - DISTRO="ubuntu:rolling"
- - DISTRO="ubuntu:focal"
-
-jobs:
- exclude:
- - env: DISTRO="archlinux:latest"
- arch: ppc64le
+
+if: (type == push AND sender != weblate) OR (type == pull_request AND fork == true)
+
+ dist: bionic
+ language: shell
+ os: linux
+
+ arch:
+ - amd64
+ - ppc64le
+
+ services:
+ - docker
+
+ addons:
+ apt:
+ packages:
+ - python3-pip
+ - python3-setuptools
+
+ before_install:
+ # let's use the MATE project's docker build script...
+ - curl -Ls -o docker-build https://github.com/AyatanaIndicators/ayatana-dev-scripts/raw/master/travis/docker-build
+ - chmod +x docker-build
+
+ install:
+ - pip3 install wheel
+ - pip3 install PyGithub
+ - ./docker-build --name ${DISTRO} --config .build.yml --install
+
+ script:
+ - ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts
+
+ env:
+ # temp disable of archlinux builds, see https://gitlab.archlinux.org/archlinux/archlinux-docker/-/issues/56
+ # - DISTRO="archlinux:latest"
+ - DISTRO="debian:testing"
+ - DISTRO="debian:stable"
+ # - DISTRO="ubuntu:rolling"
+ - DISTRO="ubuntu:focal"
+
+ jobs:
+ exclude:
+ - env: DISTRO="archlinux:latest"
+ arch: ppc64le