diff options
-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:\/\///')" |