protected function fillTravisCi()
    {
        if (isset($this->env['TRAVIS']) && $this->env['TRAVIS'] && isset($this->env['TRAVIS_JOB_ID'])) {
            $this->env['CI_JOB_ID'] = $this->env['TRAVIS_JOB_ID'];

            if ($this->config->hasServiceName()) {
                $this->env['CI_NAME'] = $this->config->getServiceName();
            } else {
                $this->env['CI_NAME'] = 'travis-ci';
            }

            // backup
            $this->readEnv['TRAVIS'] = $this->env['TRAVIS'];
            $this->readEnv['TRAVIS_JOB_ID'] = $this->env['TRAVIS_JOB_ID'];
            $this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
        }

        return $this;
    }
protected function fillTravisCi()
    {
        if (isset($this->env['TRAVIS']) && $this->env['TRAVIS'] && isset($this->env['TRAVIS_JOB_ID'])) {
            $this->env['CI_JOB_ID'] = $this->env['TRAVIS_JOB_ID'];

            if ($this->config->hasServiceName()) {
                $this->env['CI_NAME'] = $this->config->getServiceName();
            } else {
                $this->env['CI_NAME'] = 'travis-ci';
            }

            // backup
            $this->readEnv['TRAVIS'] = $this->env['TRAVIS'];
            $this->readEnv['TRAVIS_JOB_ID'] = $this->env['TRAVIS_JOB_ID'];
            $this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
        }

        return $this;
    }
protected function fillTravisCi ( ) { if ( isset ( $ this -> env [ 'TRAVIS' ] ) && $ this -> env [ 'TRAVIS' ] && isset ( $ this -> env [ 'TRAVIS_JOB_ID' ] ) ) { $ this -> env [ 'CI_JOB_ID' ] = $ this -> env [ 'TRAVIS_JOB_ID' ] ; if ( $ this -> config -> hasServiceName ( ) ) { $ this -> env [ 'CI_NAME' ] = $ this -> config -> getServiceName ( ) ; } else { $ this -> env [ 'CI_NAME' ] = 'travis-ci' ; } // backup $ this -> readEnv [ 'TRAVIS' ] = $ this -> env [ 'TRAVIS' ] ; $ this -> readEnv [ 'TRAVIS_JOB_ID' ] = $ this -> env [ 'TRAVIS_JOB_ID' ] ; $ this -> readEnv [ 'CI_NAME' ] = $ this -> env [ 'CI_NAME' ] ; } return $ this ; }
Fill Travis CI environment variables.

"TRAVIS", "TRAVIS_JOB_ID" must be set.

@return $this
Fill Travis CI environment variables .