Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit ae2d5c8

Browse files
author
Kamil Kisiela
committed
chore: automate publishing
just meteor atm
1 parent 601db7d commit ae2d5c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ notifications:
77
node_js:
88
- iojs
99
before_install:
10+
- "curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/master/configure.sh | /bin/sh"
1011
- "npm install"
1112
- "export DISPLAY=:99.0"
1213
- "sh -e /etc/init.d/xvfb start"
1314
before_script:
15+
- "export PATH=$HOME/.meteor:$PATH"
1416
- "npm prune"
1517
script:
1618
- "npm run test"
@@ -19,3 +21,4 @@ after_success:
1921
- "npm run coverage:codecov"
2022
- "npm run coverage:coveralls"
2123
- "npm run coverage:codacy"
24+
- if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then npm run publish; fi

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"coverage:codecov": "cat ./coverage/lcov.info | node_modules/.bin/codecov",
1414
"coverage:coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
1515
"coverage:codacy": "cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage",
16-
"test": "karma start karma.conf.js --set-env-NODE_ENV=ci"
16+
"test": "karma start karma.conf.js --set-env-NODE_ENV=ci",
17+
"publish:meteor": "meteor publish",
18+
"publish": "npm run publish:meteor"
1719
},
1820
"repository": {
1921
"type": "git",

0 commit comments

Comments
 (0)