Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
ci: add semantic releases and bin bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 15, 2019
1 parent cf98650 commit d96d850
Show file tree
Hide file tree
Showing 5 changed files with 5,330 additions and 114 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*.idea
/*.sqlite3
/build
/bin
/coverage
/demo-magic.sh
/demo.cast
/dist
/docs
/nixroot
/nixster.tgz
/nixster-deps.tgz
/node_modules
31 changes: 27 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ before_install:

# Do linting, coverage, and build docs (to upload to Github pages)
script:
- make lint
# Do an update to populate db prior to testing
- npx ts-node src/cli.ts update nixos-18.09
- make cover
- make docker
- make docs

- npm run lint
- npm run check
- npm run cover
- npm run docs
- npm run build
- npm run bundle:$TRAVIS_OS_NAME
- npm run docker

# Dump the packages to a TSV file for browsing (until we have a better way of browsing them)
- npx ts-node src/cli.ts dump packages --tsv > docs/packages.tsv

Expand Down Expand Up @@ -54,3 +59,21 @@ deploy:
local-dir: docs
on:
branch: master

# Do a semantic release (only on Linux)
- provider: script
skip_cleanup: true
script: npx semantic-release
on:
branch: master
condition: $TRAVIS_OS_NAME = linux

# Deploy build artifacts to Github release
# page on *any* tag (including those generated for a semantic release)
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: bin/*.tar.gz
skip_cleanup: true
on:
tags: true
Loading

0 comments on commit d96d850

Please sign in to comment.