Travis builds twice every commit (two tasks per build)

YAML looks like the following:

sudo: required
dist: trusty
group: deprecated-2017Q4

language: java

sudo: required

services:
  - docker

Any reason for this?

1 Like

This is being caused by the env configuration. Travis sees this as a build matrix. The correct way is to use the global key:

env:
  global:
    - GH_USER_EMAIL=
    - GH_USER_NAME=
1 Like

ah thanks @montana worked!