Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

model steup for travis-ci

Aashish-Upadhyay-101824315f77306
diff --git a/backend/src/models/integration.ts b/backend/src/models/integration.ts
index 1b52fabd9a..35ef6106b7 100644
--- a/backend/src/models/integration.ts
+++ b/backend/src/models/integration.ts
@@ -10,6 +10,7 @@ import {
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
} from "../variables";
export interface IIntegration {
@@ -33,7 +34,8 @@ export interface IIntegration {
| 'github'
| 'render'
| 'flyio'
- | 'circleci';
+ | 'circleci'
+ | 'travisci';
integrationAuth: Types.ObjectId;
}
@@ -97,6 +99,7 @@ const integrationSchema = new Schema<IIntegration>(
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
],
required: true,
},
diff --git a/backend/src/models/integrationAuth.ts b/backend/src/models/integrationAuth.ts
index 95f8c75af2..c68fdd336d 100644
--- a/backend/src/models/integrationAuth.ts
+++ b/backend/src/models/integrationAuth.ts
@@ -10,12 +10,13 @@ import {
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
} from "../variables";
export interface IIntegrationAuth {
_id: Types.ObjectId;
workspace: Types.ObjectId;
- integration: 'heroku' | 'vercel' | 'netlify' | 'github' | 'render' | 'flyio' | 'azure-key-vault' | 'circleci' | 'aws-parameter-store' | 'aws-secret-manager';
+ integration: 'heroku' | 'vercel' | 'netlify' | 'github' | 'render' | 'flyio' | 'azure-key-vault' | 'circleci' | 'travisci' | 'aws-parameter-store' | 'aws-secret-manager';
teamId: string;
accountId: string;
refreshCiphertext?: string;
@@ -50,6 +51,7 @@ const integrationAuthSchema = new Schema<IIntegrationAuth>(
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
],
required: true,
},
diff --git a/backend/src/variables/index.ts b/backend/src/variables/index.ts
index 23854bc584..9d16b7f437 100644
--- a/backend/src/variables/index.ts
+++ b/backend/src/variables/index.ts
@@ -16,6 +16,7 @@ import {
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
INTEGRATION_SET,
INTEGRATION_OAUTH2,
INTEGRATION_AZURE_TOKEN_URL,
@@ -29,6 +30,7 @@ import {
INTEGRATION_RENDER_API_URL,
INTEGRATION_FLYIO_API_URL,
INTEGRATION_CIRCLECI_API_URL,
+ INTEGRATION_TRAVISCI_API_URL,
INTEGRATION_OPTIONS,
} from "./integration";
import { OWNER, ADMIN, MEMBER, INVITED, ACCEPTED } from "./organization";
@@ -77,6 +79,7 @@ export {
INTEGRATION_RENDER,
INTEGRATION_FLYIO,
INTEGRATION_CIRCLECI,
+ INTEGRATION_TRAVISCI,
INTEGRATION_SET,
INTEGRATION_OAUTH2,
INTEGRATION_AZURE_TOKEN_URL,
@@ -90,6 +93,7 @@ export {
INTEGRATION_RENDER_API_URL,
INTEGRATION_FLYIO_API_URL,
INTEGRATION_CIRCLECI_API_URL,
+ INTEGRATION_TRAVISCI_API_URL,
EVENT_PUSH_SECRETS,
EVENT_PULL_SECRETS,
ACTION_LOGIN,