-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
30 lines (30 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: node_js
sudo: false
node_js:
- '10'
cache:
directories:
- '$HOME/.npm'
- node_modules
before_script:
- npm config set -g production true
- npm install
- npm install -g jsdoc
script:
# - npm test #test case goes here
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
npm config set git-tag-version=false && NPM_VERSION=$(npm version patch); fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./shell/push.sh;
fi
after_success: npm run coverage
after_failure:
- dmesg | grep -i kill
- sleep 4
deploy:
provider: npm
email: arsenal.narayan@gmail.com
api_key:
secure: olkXLhRRS5Kfti8Qfu6GnLdjJP9w21I4N29PI12KUPdE9SexmiNWuNfsR2Br5n1hY/ZrHZBZ7kXlXfAmieCS6hS48eaYBzm6+KewMs7plvxgYqOX4E4la3rVOtxZdjWjFxDlZhgLvVLgtXBhZ7SdF47rrUbzYkIpWmG6L+15foXMLnSidsk0LFjNsdXSpcKZfNm2LVReyTYOUs7+RHQYfTHoFwtqu7rOWHKa52o0jAmQVA48rxR2C1q787GtUpMqhaYV7sHgsOFh9NvHTWw3IFJkkTn9iwVFtiJdIm+Kq8XZ70vunZLDWMDsnCowL3JW/EB2iJpukl3pS4GYZRRF+dwv6ZYnbp8UXRCBDcmOGR2JoEH2dPJI6t97lkwcbDfEbIDn2tlmswnwG31bs9eG9k41dMsroRJMO5n0GtHQcAk/sfwSs99RnDJ5IfnG2wfK5BxFQ7cKe8vJh8kgVnVW+lGPDeFTrTMH0Hf0edZXp3WLdaTq2mzyz9vbdkNhTgIztyEoTvnj9JR32jAMYBr3v0FtsBWFeul6qndJF4Sf3b1krOlaqbp62d5b0pmtLH2t+eksVxNiyd+lZr+4fEuNEJy4+gpCTeRh0JluaPxSSp6t/67+Bd3v7k7fB7yTrzn19/M292eLRvixeMJPRcmHyGEyRrTmSC3ef41sJpnJYQ8=
on:
repo: BlockClusterApp/blockcluster-node