Hi Everyone,
I want to run an extended test when testing is started from cron. I know I can inspect TRAVIS_EVENT_TYPE and detect cron, but I don’t know how to wire it into .travis.yml.
I think I want something like enable: if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]. Or enable: if [ "${TEST_CRON}" = "yes" ] (from the code below).
How do I specify a job is to be run under cron?
Thanks in advance
Here’s a sample from .travis.yml.
include:
jobs:
- name: Standard job 1
compiler: gcc
env: TEST_STANDARD=1
- name: Standard job 2
compiler: clang
env: TEST_STANDARD=1
- name: CRON job
compiler: gcc
env: TEST_CRON=1