From f254aaf7bf05d38e028b49ebd4607462ef1e1f1e Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Sat, 20 Jul 2019 04:00:05 -0400 Subject: [PATCH] (ci): add Travis CI support - don't have tests yet, so for now just test compile/build and pack - modify the test script command to do so for now - `npm test` is also the default script in Travis --- .travis.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..78f9d1f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +# default is the very old 0.10.48; match local version instead +node_js: '8.9' diff --git a/package.json b/package.json index 2f0db7e..1c671fd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "start": "tsdx watch", "build": "tsdx build", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "npm run build && npm pack" }, "repository": { "type": "git",