Skip to content

Commit b0917ca

Browse files
committed
add binary builds to travis
1 parent d9fb37d commit b0917ca

File tree

5 files changed

+861
-21
lines changed

5 files changed

+861
-21
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
.DS_STORE
66
yarn-error.log
77
**/._*
8+
out

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ node_js:
44
- "6.11"
55
- "7"
66
- "8"
7+
- "10"
78
cache: yarn
9+
script:
10+
- yarn build
11+
deploy:
12+
provider: releases
13+
api_key:
14+
secure: "q1kPg8zNInr1zrEsFvuX4r/Sp0DntK9m8uIi6PqpFNci3HnKEx6aLTe6eVaDpBfMyk+OqAxhyyytDmH36OhfEeDFzuR4wnzRM6LI0pJa9faWohY8CXke2/V6mWRGDorSDKUJ2FriJGL4p/hE2jw1ms/tQh7EsYE1ch3HcIKwkuHKhOVw84I4wW0VNHBMQ/RSnWnUENVO9Tfj/jHlZyltADAgJxRhQd9xg4lTyy95lMoM1eTjyrUiiVg9MPxLj8Mzv5mXbRCASxTziS/FBPrOOB8sMIyfN7cL8/e8hfMTuiWBmfWNaRrQTenLpm1IXobV8oANKg6DqS+cawN/zp9AIXsfzOksQib2tswbCBNY9Vj3tNSTpTLuyTFVvvlB/vNB715oTJX0cuHp8e4nW6AqP1DKUTTELwR1lji0YyGLIFQEw9RcTBP0e3LHXuXjgE80iypsZQQVNIHgIiNNvc1VEMJYECkeHsXt5LblMoJcw+tI7JL6LL3gv3g9j/3/dLvlfTBiXJPTxTlPl0zFvM31t4edGkmfVIRFxjpCGnrOfAnclmDt/r8u3A4i29FovbfIRTkEA+naQQWJvjXmkqTTBbAtOCFROT23EcydEoaE2uYI6Dc0AGPnoeZ3NSTRNvT2SjnotyXT0vVFfDIuB4FLtrX7kNEtHvNkBNzptS28i8E="
15+
file_glob: true
16+
file: out/*
17+
skip_cleanup: true
18+
on:
19+
tags: true
820
after_success:
9-
- yarn run coveralls
21+
- yarn run coveralls

documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ echo "alias gtt='docker run --rm -it -v ~:/root kriskbx/gitlab-time-tracker'" >>
105105
Now you can simply write `gtt` instead of the bulky Docker command before. Try it out: `gtt --help`
106106

107107
**Note:** If you want to save reports via the `--file` parameter, make sure to save them in `/root` or another
108-
mounted directory that you have access to on your host machine. Take a look at the [Docker documentation](https://docs.docker.com/engine/tutorials/dockervolumes/) about how Docker handles data and volumes.
108+
mounted directory that you have access to on your host machine. Take a look at the [Docker documentation](https://docs.docker.com/engine/tutorials/dockervolumes/) about how Dopcker handles data and volumes.
109109

110110
## commands
111111

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"scripts": {
1414
"test": "NODE_ENV=test mocha 'spec/**/*.spec.js'",
1515
"cover": "istanbul cover _mocha $(find ./spec -name \"*.spec.js\")",
16-
"coveralls": "yarn run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
16+
"coveralls": "yarn run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls",
17+
"build": "pkg -o out/gtt -t node10-linux-x64,node10-macos-x64,node10-win-x64 src/gtt.js"
1718
},
1819
"bin": {
1920
"gtt": "src/gtt.js"
@@ -55,6 +56,7 @@
5556
"istanbul": "^0.4.5",
5657
"mocha": "^5",
5758
"mocha-lcov-reporter": "^1.3.0",
59+
"pkg": "^4.3.4",
5860
"sinon": "^3.2.1"
5961
}
6062
}

0 commit comments

Comments
 (0)