From 7b61f33ce9f996d2546b14a18c0e85a78d41c911 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Tue, 8 Aug 2017 14:04:59 +0300 Subject: [PATCH 1/3] Unskip test files --- package.json | 2 +- test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9435a2..cc04e1a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "API to find an iOS mobile provision", "main": "index.js", "scripts": { - "prepublish": "tsc && pegjs parsers/security-find-identity.pegjs && pegjs parsers/security-find-certificate.pegjs", + "prepare": "tsc && pegjs parsers/security-find-identity.pegjs && pegjs parsers/security-find-certificate.pegjs", "test": "tsc && mocha", "watch": "mocha-typescript-watch" }, diff --git a/test.ts b/test.ts index 2c7343d..4146d37 100644 --- a/test.ts +++ b/test.ts @@ -29,7 +29,7 @@ function print(result: provision.Result) { } // These run end to end tests and run security tool and depend on the keychain, they will run only on mac. Consider running them during development. -describe.skip("api", () => { +describe("api", () => { describe("certificates", () => { it("list all", () => { const result = cert.read(); @@ -219,4 +219,5 @@ describe("provision", function() { // This test need to be added in future. it("can find profile by app-id, device udid and certificate"); it("unique filters duplicates"); + it("can parse a provisioning profile file"); }); From a6c53bb0bd45e27f80cc46892a671a05217aacf9 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Tue, 8 Aug 2017 14:11:41 +0300 Subject: [PATCH 2/3] Run on macos only, no security on windows --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 2197832..85d1b93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ language: node_js +os: osx node_js: - "node" From 5601bdcf234781c15aed65b136548da216ab26f5 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Tue, 8 Aug 2017 14:21:57 +0300 Subject: [PATCH 3/3] npm ignore .pegjs, git ignore ds_store --- .gitignore | 7 ++++++- .npmignore | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3afe5da..f47fd20 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,9 @@ jspm_packages .node_repl_history # We run on TypeScript and PEG.js -*.js \ No newline at end of file +*.js + +*.tgz +package +package-lock.json +.DS_Store \ No newline at end of file diff --git a/.npmignore b/.npmignore index 5cccb00..f6e528e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,9 @@ +*.pegjs *.ts +*.tgz !*.d.ts tsconfig.json -.vscode \ No newline at end of file +.vscode +tests +package +package-lock.json