@cryptotaxi247 / netdata-1 / commits / 839d14885

decouple nightly cron jobs from packaging stage (#4559)

* decouple nightly cron jobs from packaging stage * do not fail when there is no new changelog

Paweł Krupa committed Nov 4, 2018 at 12:53 UTC 839d1488571623413aad7ba2019c0437a4f980c4
2 files changed +9 -10
.travis.yml
+8 -9
@@ -8,7 +8,9 @@ stages:
8 - test
9 - build
10 - name: packaging
11 - if: branch = master AND type != pull_request
11 + if: branch = master AND type != pull_request AND type != cron
12 +- name: nightlies
13 + if: branch = master AND type = cron
14
15 jobs:
16 include:
@@ -47,22 +49,19 @@ jobs:
49 script: ".travis/releaser.sh"
50 git:
51 depth: false
50 - if: type != cron
51 - - name: Nightly tarball and self-extractor build
52 +
53 + - stage: nightlies
54 + name: tarball and self-extractor build
55 install: sudo apt-get install -y gnupg libcap2-bin zlib1g-dev uuid-dev fakeroot
56 script: ".travis/firehol_create_artifacts.sh"
54 - if: type = cron
55 - - name: Nightly docker images
57 + - name: docker images
58 install: sudo apt update -y && sudo apt install -y --only-upgrade docker-ce && docker info
59 script: "docker/build.sh"
60 env: REPOSITORY="netdata/netdata"
59 - if: type = cron
60 - - name: Nightly changelog generation
61 + - name: changelog generation
62 script: ".travis/generate_changelog.sh"
62 - if: type = cron
63 - name: labeler # This job should be replaced with GitHub Actions when they hit GA
64 script: ".travis/labeler.sh"
65 - if: type = cron
65
66 notifications:
67 webhooks: https://app.fossa.io/hooks/travisci
.travis/generate_changelog.sh
+1 -1
@@ -32,5 +32,5 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest
32
33 echo "--- Uploading changelog ---"
34 git add CHANGELOG.md
35 -git commit -m '[ci skip] Automatic changelog update'
35 +git commit -m '[ci skip] Automatic changelog update' || exit 0
36 git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')"