Skip to content

Commit

Permalink
refactor(CISource): place CISource implementation under providers
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Dec 31, 2016
1 parent 9eca567 commit 79416ca
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion source/ci_source/_tests/_ci_sourse.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow

import Fake from "../Fake"
import Fake from "../providers/Fake"
import { getCISourceForEnv } from "../ci_source"

describe(".getCISourceForEnv", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
"use strict"

import type { Env } from "./ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "./ci_source_helpers"
import type { Env } from "../ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "../ci_source_helpers"

export default class Circle {
env: Env
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
"use strict"

import type { Env } from "./ci_source"
import { ensureEnvKeysExist } from "./ci_source_helpers"
import type { Env } from "../ci_source"
import { ensureEnvKeysExist } from "../ci_source_helpers"

export default class FakeCI {
env: Env
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
"use strict"

import type { Env } from "./ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "./ci_source_helpers"
import type { Env } from "../ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "../ci_source_helpers"

export default class Jenkins {
env: Env
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
"use strict"

import type { Env } from "./ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "./ci_source_helpers"
import type { Env } from "../ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "../ci_source_helpers"

export default class Semaphore {
env: Env
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @flow
"use strict"

import type { Env } from "./ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "./ci_source_helpers"
import type { Env } from "../ci_source"
import { ensureEnvKeysExist, ensureEnvKeysAreInt } from "../ci_source_helpers"

export default class Travis {
env: Env
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions source/ci_source/providers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Travis from "./Travis"
import Circle from "./Circle"
import Semaphore from "./Semaphore"
import Jenkins from "./Jenkins"
import Fake from "./Fake"

export default [Travis, Circle, Semaphore, Jenkins, Fake]
2 changes: 1 addition & 1 deletion source/platforms/_tests/GitHub.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*eslint-disable */

import { GitHub } from "../GitHub"
import Fake from "../../ci_source/Fake"
import Fake from "../../ci_source/providers/Fake"
import { readFileSync } from "fs"
import { resolve } from "path"
import os from "os"
Expand Down
2 changes: 1 addition & 1 deletion source/runner/_tests/DangerRunner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
updateDangerfile,
cleanDangerfile
} from "../DangerfileRunner"
import Fake from "../../ci_source/Fake"
import Fake from "../../ci_source/providers/Fake"
import FakePlatform from "../../platforms/FakePlatform"
import Executor from "../Executor"

Expand Down
2 changes: 1 addition & 1 deletion source/runner/_tests/Executor.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow

import Executor from "../Executor"
import Fake from "../../ci_source/Fake"
import Fake from "../../ci_source/providers/Fake"
import FakePlatform from "../../platforms/FakePlatform"
import { emptyResults, warnResults } from "./fixtures/ExampleDangerResults"

Expand Down

0 comments on commit 79416ca

Please sign in to comment.