diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-11-04 12:53:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-04 12:53:17 +0100 |
commit | 839d1488571623413aad7ba2019c0437a4f980c4 (patch) | |
tree | f2ad50fe21681a97134f20c56fd8d1898d63b0e0 | |
parent | 5ae448a6c3cc4d02b5bc2108d0a1d4f52d758a8c (diff) |
decouple nightly cron jobs from packaging stage (#4559)
* decouple nightly cron jobs from packaging stage
* do not fail when there is no new changelog
-rw-r--r-- | .travis.yml | 17 | ||||
-rwxr-xr-x | .travis/generate_changelog.sh | 2 |
2 files changed, 9 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 384931eb22..15c744ec5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,9 @@ stages: - test - build - name: packaging - if: branch = master AND type != pull_request + if: branch = master AND type != pull_request AND type != cron +- name: nightlies + if: branch = master AND type = cron jobs: include: @@ -47,22 +49,19 @@ jobs: script: ".travis/releaser.sh" git: depth: false - if: type != cron - - name: Nightly tarball and self-extractor build + + - stage: nightlies + name: tarball and self-extractor build install: sudo apt-get install -y gnupg libcap2-bin zlib1g-dev uuid-dev fakeroot script: ".travis/firehol_create_artifacts.sh" - if: type = cron - - name: Nightly docker images + - name: docker images install: sudo apt update -y && sudo apt install -y --only-upgrade docker-ce && docker info script: "docker/build.sh" env: REPOSITORY="netdata/netdata" - if: type = cron - - name: Nightly changelog generation + - name: changelog generation script: ".travis/generate_changelog.sh" - if: type = cron - name: labeler # This job should be replaced with GitHub Actions when they hit GA script: ".travis/labeler.sh" - if: type = cron notifications: webhooks: https://app.fossa.io/hooks/travisci diff --git a/.travis/generate_changelog.sh b/.travis/generate_changelog.sh index bc8be1023b..786bd011f3 100755 --- a/.travis/generate_changelog.sh +++ b/.travis/generate_changelog.sh @@ -32,5 +32,5 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest echo "--- Uploading changelog ---" git add CHANGELOG.md -git commit -m '[ci skip] Automatic changelog update' +git commit -m '[ci skip] Automatic changelog update' || exit 0 git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" |