Skip to content

Commit 0ef89a9

Browse files
committed
trying travis release
1 parent 642b397 commit 0ef89a9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ install:
1616
- npm install
1717
script:
1818
- npm run test:unit -- --coverage
19-
- npm run test:e2e
20-
after_success:
2119
- npm install coveralls
2220
- cat ./coverage/lcov.info | coveralls
23-
- chmod u+x ./release.sh
24-
- ./release.sh
21+
- npm run test:e2e
22+
# - chmod u+x ./release.sh
23+
# - ./release.sh
2524

25+
before_deploy:
26+
- export TRAVIS_TAG=${TRAVIS_TAG:-$(node -p "require('./package.json').version")-$(date +'%Y.%m.%d')-$(git log --format=%h -1)}
27+
- git tag ${TRAVIS_TAG}
28+
- npm run build
29+
- export PACKAGE=$(npm pack --silent)
2630
deploy:
2731
- provider: releases
2832
skip_cleanup: true
@@ -33,13 +37,16 @@ deploy:
3337
repo: eidng8/vue-tree
3438
branch: master
3539
tags: true
40+
condition: ${TRAVIS_EVENT_TYPE} == push
3641
- provider: npm
3742
skip_cleanup: true
3843
email: cheung.jackey@gmail.com
3944
api_key:
4045
secure: 2mIMc5dD88yzeeAhV1D8uTFJIJhYKgTMPH36K3HbLvMHUtSYRQBOob9H075iEsQ3Ta1Liuk27T93Q0atVsybUj1ufWo0Hzal0iYd4s1aj08hTsiIahD0EPf+dmSRaUELXqjFofXgboRugpxDeyTvOjCTjKT+eF3c1c+X7AFiPMmVzLJmx3eFRb8y3F9yUJ5nVz8NyvjJzv6Me6sf59O8a04awqL9okaSmJcdj79/7lkUzWAQ00LNKHXU+eP5C65VMciqu02PCRIk+C2nNOfw7IH5cRW3ZPzngPu6HAPgeUP0CloRU8yM8qU1LF9A/1IE09fRvctZnOCR2zt3EigmrmWVPPqiYBy2G95NQCJfGlAfynWVl+r/aMHmtABb818OBUyOXBxhEISrW9jJVm3z1N4gqYr+/Yfc62jkCGwUQHhDBOgOuNQv+G/8dN/FzRqRbCm/rXLcP4HaRfFu+CDkf+MFKu5jF5R7QFydRG3XVCOv73mpt/AFewJUJs7+IY/jPQ7J4JMeVhDYo3l31iC1mPE4+ylk9skq6Ss5v17N7/uahE8odV9tUyx0vDUTXfzjtIp6EH+y59HFNHn6dO2wAnQyozGvcDiQazt8jgcEcEAsRiVjrfVYO+UxBLTV2keXkvE4rzdAJZXJZblwRuyC5yFmBlUNGY38bpVBZZYTB+g=
4146
on:
4247
repo: eidng8/vue-tree
48+
branch: master
49+
condition: ${TRAVIS_EVENT_TYPE} == push
4350
#tags: true
4451
after_deploy:
4552
# I want to make sure the dev is at the tip of every release.

0 commit comments

Comments
 (0)