mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 15:23:46 +08:00
Run full build variants with tests on a weekly schedule
This commit is contained in:
committed by
Roger Light
parent
01dc73a60c
commit
7ecbb80258
@@ -13,6 +13,8 @@ on:
|
||||
- develop
|
||||
- fixes
|
||||
- release/*
|
||||
schedule:
|
||||
- cron: "0 2 * * 2"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -55,8 +57,13 @@ jobs:
|
||||
with:
|
||||
submodules: 'true'
|
||||
|
||||
- name: build
|
||||
- name: build on push and pull_request
|
||||
if: ${{ github.event_name != 'scheduled' }}
|
||||
run: ./buildtest.py
|
||||
|
||||
- name: build and test on schedule
|
||||
if: ${{ github.event_name == 'scheduled' }}
|
||||
run: ./buildtest.py --tests
|
||||
|
||||
- name: Report ccache stats
|
||||
run: ccache -s
|
||||
|
||||
+5
-1
@@ -48,6 +48,7 @@ import os
|
||||
import random
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
class Duration():
|
||||
@@ -124,6 +125,9 @@ def random_tests(count, run_tests):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_tests = False
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "--tests":
|
||||
run_tests = True
|
||||
else:
|
||||
run_tests = False
|
||||
simple_tests(run_tests)
|
||||
#random_tests(2, run_tests)
|
||||
|
||||
Reference in New Issue
Block a user