From 96d543baf378b94b64f0f1b107e2b8db766ec84b Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 20 Apr 2020 15:49:21 -0700 Subject: [PATCH] add deploy steps --- .travis.yml | 20 +++++++++++++++----- snap/local/.travis.yml | 7 ------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb523bd74..c4ce58c52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,15 +32,16 @@ branches: not-on-master: ¬-on-master if: NOT (type = push AND branch = master) -# Jobs for the extended test suite are executed for cron jobs and pushes to -# non-development branches. See the explanation for apache-parser-v2 above. +# Jobs for the extended test suite are executed for tags, cron jobs, and pushes +# to non-development branches. See the explanation for apache-parser-v2 above. extended-test-suite: &extended-test-suite - if: type = cron OR (type = push AND branch NOT IN (apache-parser-v2, master)) + if: tag IS present OR type = cron OR (type = push AND branch NOT IN (apache-parser-v2, master)) matrix: include: # Main test suite - - python: "2.7" + - stage: "Test" + python: "2.7" env: ACME_SERVER=pebble TOXENV=integration <<: *not-on-master @@ -224,7 +225,8 @@ matrix: packages: # don't install nginx and apache - libaugeas0 <<: *extended-test-suite - - sudo: required + - stage: "Create Snap" + sudo: required env: SNAP=true TOXENV=integration-external,apacheconftest-external-with-pebble addons: apt: @@ -236,6 +238,14 @@ matrix: confinement: classic - name: lxd channel: stable + deploy: + 'on': + # Deploy on release tags or nightly runs + condition: -n $TRAVIS_TAG || $TRAVIS_EVENT_TYPE = cron + provider: snap + snap: certbot_*.snap + channel: edge + skip_cleanup: true <<: *extended-test-suite # container-based infrastructure diff --git a/snap/local/.travis.yml b/snap/local/.travis.yml index d1925c5a8..e69de29bb 100644 --- a/snap/local/.travis.yml +++ b/snap/local/.travis.yml @@ -1,7 +0,0 @@ -deploy: - 'on': - branch: master - provider: snap - snap: certbot_*.snap - channel: edge - skip_cleanup: true