forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (75 loc) · 3.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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")