diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29bcc4f..31c1209 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,24 +1,27 @@ image: node:latest stages: - - install + # - install - test -job-install: - stage: install - script: - - npm install - artifacts: - untracked: false - when: on_success - access: all - expire_in: "30 days" - paths: - - node_modules +# job-install: +# stage: install +# script: +# - npm install +# artifacts: +# untracked: false +# when: on_success +# access: all +# expire_in: "30 days" +# paths: +# - node_modules + + job-test: stage: test script: + - npm install - echo "ASSEMBLYAI_API_KEY=$apikey_assembly" > .env - echo "GOOGLE_API_KEY=$apikey_gemini" >> .env - npm test \ No newline at end of file diff --git a/test/unit/test.js b/test/unit/test.js index 7017f04..3560969 100644 --- a/test/unit/test.js +++ b/test/unit/test.js @@ -78,7 +78,7 @@ describe("Unit Tests", function() { describe("Audio Transcription", function() { this.slow(20000) - this.timeout(60000) + this.timeout(120000) it('Assembly', function (done) { mapFunctions.get("assembly").function(audiopath).then(resp => { @@ -143,7 +143,7 @@ describe("Unit Tests", function() { describe("Large Language Model", function() { this.slow(30000) - this.timeout(60000) + this.timeout(120000) // it("ChatGPT", function (done){ // mapFunctions.get("chatgpt").function({inputTranscriptPath: summarizePath, documentTypePath: "./storage/documentType/meetingReport.json", language: "en"}).then(resp => { diff --git a/test/unit/testvideo.mp4 b/test/unit/testvideo.mp4 index db6f1cb..625a31f 100644 Binary files a/test/unit/testvideo.mp4 and b/test/unit/testvideo.mp4 differ