Main workflow / Run (ubuntu-latest, 5.6) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.0) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.1) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.2) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.3) (push) Failing after 0s
Main workflow / Run (macOS-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.3) (push) Canceled after 0s
Main workflow / Run (windows-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.3) (push) Canceled after 0s
18 lines
525 B
JavaScript
18 lines
525 B
JavaScript
var local = require('../../lib/services/localGit')
|
|
var execSync = require('child_process').execSync
|
|
|
|
describe('Local git/mercurial CI Provider', function() {
|
|
it('can get commit', function() {
|
|
expect(local.configuration().commit).toMatch(/^\w{40}$/)
|
|
expect(local.configuration().commit).toEqual(
|
|
execSync("git rev-parse HEAD || hg id -i --debug | tr -d '+'")
|
|
.toString()
|
|
.trim()
|
|
)
|
|
})
|
|
|
|
it('can get branch', function() {
|
|
expect(local.configuration().branch).not.toEqual(null)
|
|
})
|
|
})
|