How to use .travis.yml to cancel a Travis build -


for project preconditions have met before ci build makes sense. not of them can ensured prior commit. hence, safe resources i'd evaluate preconditions in .travis.yml (i.e. using shell commands) , cancel travis build if not met.

i don't think it'd helpful or feasible start experimenting kill variations in before_install phase. there must better way.

put these checks in regular install commands , have them exit failure if preconditions not met.

install:    - check_preconditions && actually_build 

this result in "failed" builds whenever happens. (slightly silly) workaround abort success, instead show "successful" build when nothing built.

install:   - { check_preconditions && actually_build; true; } 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -