Improve code quality and write tests
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

This commit is contained in:
Shivam Mathur
2019-09-20 21:54:46 +05:30
parent db44db4b97
commit 43178a7254
3597 changed files with 255478 additions and 785554 deletions
+27
View File
@@ -0,0 +1,27 @@
var shippable = require('../../lib/services/shippable')
describe('Shippable CI Provider', function() {
it('can detect shippable', function() {
process.env.SHIPPABLE = 'true'
expect(shippable.detect()).toBe(true)
})
it('can get shippable env info get_commit_status', function() {
process.env.SHIPPABLE = 'true'
process.env.BUILD_URL = 'http://...'
process.env.COMMIT = '5678'
process.env.BUILD_NUMBER = '91011'
process.env.BUILD_URL = 'http://...'
process.env.BRANCH = 'master'
process.env.PULL_REQUEST = '2'
process.env.REPO_NAME = 'owner/repo'
expect(shippable.configuration()).toEqual({
service: 'shippable',
commit: '5678',
build: '91011',
build_url: 'http://...',
branch: 'master',
pr: '2',
slug: 'owner/repo',
})
})
})