Permalink
80 lines (75 sloc) 3.56 KB
sudo: required
dist: trusty
services: [docker]
language: bash
cache:
directories:
- $TRAVIS_BUILD_DIR/snaps-cache
jobs:
include:
# Tests, only when not triggered by the daily cron.
- stage: static
if: type != cron
script: sudo ./tools/travis/run_tests.sh static
- stage: unit
if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/unit
- if: type != cron
script: SNAPCRAFT_TEST_MOCK_MACHINE=armv7l sudo ./tools/travis/run_tests.sh snapcraft/tests/unit
- stage: snap
if: type != cron
script: sudo ./tools/travis/build_snapcraft_snap.sh
- stage: integration
if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/integration/general
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/integration/plugins
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft.tests.integration.plugins.python
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft.tests.integration.plugins.catkin
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/integration/store
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/integration/containers
- if: type != cron
script: sudo ./tools/travis/run_tests.sh snapcraft/tests/integration/snapd
# CLA check, only in pull requests, not coming from the bot.
- if: type = pull_request AND sender != snappy-m-o
script: ./tools/travis/run_cla_check.sh
# Trigger nightly tests, only in cron.
- stage: nightly
# Run spread tests for the snapcraft snap in edge.
if: type = cron
script: ./runtests.sh spread
# Run autopkgtests in LXD amd64 for the snapcraft-daily PPA
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-general
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-store
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-plugins
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-plugins-python
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-plugins-catkin
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu:xenial integrationtests-snapd
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-general
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-store
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-plugins
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-plugins-python
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-plugins-catkin
- if: type = cron
script: sudo ./tools/travis/run_autopkgtests.sh ubuntu-daily:bionic integrationtests-snapd
# Trigger autopkgtests in all the supported distros and architectures for the snapcraft-daily PPA
- if: type = cron
script: sudo ./tools/travis/run_ppa_autopkgtests.sh
# Collect the results for the PPA autopkgtests that were triggered the day before.
- if: type = cron
script: sudo ./tools/travis/collect_ppa_autopkgtests_results.sh $(date -d "yesterday" "+%Y%m%d")