Skip to content

Commit 8a4cdb7

Browse files
committed
Simplified Travis config
Signed-off-by: Jaid <[email protected]>
1 parent 0cf562f commit 8a4cdb7

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.travis.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,17 @@ language: node_js
22
node_js: [node, lts/*]
33
cache:
44
npm: true
5-
before_script:
6-
- npm add --global pover
75
script:
8-
- pover install
9-
- pover build:dev
10-
- pover build:prod
11-
- pover test
6+
- npx pover install
7+
- npx pover build:dev
8+
- npx pover build:prod
9+
- npx pover test
1210
jobs:
1311
include:
1412
- stage: Deploy
1513
before_deploy:
1614
- npm run build:prod
17-
- export PKG_NAME=$(node -e "console.log(require('./dist/package/production/package').name)")
18-
- export PKG_VERSION=$(node -e "console.log(require('./dist/package/production/package').version)")
19-
- "[[ -d dist/homepage/$PKG_NAME/$PKG_VERSION ]] && npm run test:coverage && cp -r dist/homepage/$PKG_NAME/$PKG_VERSION page && cp -r dist/jest/coverage/lcov-report page/coverage || true"
20-
- mkdir --parents dist/github
21-
- cd dist/package/production
22-
- zip -9 --recurse-paths ../../github/${PKG_NAME}_v$PKG_VERSION.zip **
23-
- zip -9 --recurse-paths ../../github/${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
24-
- cd ../../..
25-
- cp dist/package/production/{*.d.ts,package.json,license.*} dist/github
15+
- npx compile-release
2616
deploy:
2717
- provider: pages
2818
local_dir: page

0 commit comments

Comments
 (0)