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

Commit

Permalink
Merge pull request #42 from stencila/binaries
Browse files Browse the repository at this point in the history
Add semantic releases with pre-built binaries
  • Loading branch information
nokome authored May 15, 2019
2 parents cf98650 + 828d0c0 commit 83fbf90
Show file tree
Hide file tree
Showing 6 changed files with 5,339 additions and 115 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
29 changes: 26 additions & 3 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

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

# 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_
&& tar xzvf docker-${DOCKER_VERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
&& rm docker-${DOCKER_VERSION}.tgz

COPY --from=builder /nixster/build/nixster /home/nixster
COPY --from=builder /nixster/bin/nixster /home/nixster

WORKDIR /home/nixster

Expand Down
Loading

0 comments on commit 83fbf90

Please sign in to comment.