Skip to content
Permalink
Browse files

Add stages to Travis

  • Loading branch information...
marcomontalbano committed Feb 20, 2019
1 parent 93ab70c commit 9207c3266e7fb327d221d66e3b343a591009ba15
Showing with 25 additions and 6 deletions.
  1. +22 −5 .travis.yml
  2. +2 −0 README.md
  3. +1 −1 package.json
@@ -1,13 +1,30 @@
language: node_js

# cache:
# directories:
# - $HOME/.cargo
# - $TRAVIS_BUILD_DIR/target

node_js:
- "8"

before_script:
before_install:
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- source $HOME/.cargo/env
- cargo install wasm-pack

script:
- npm run build
- npm run publish
stages:
- test
- name: deploy
if: branch = master

jobs:
include:
- stage: test
script:
- npm test
- stage: deploy
before_script:
- cargo install wasm-pack
script:
- npm run build
- npm run publish
@@ -1,5 +1,7 @@
# WebAssembly vs Javascript

[![Build Status](https://travis-ci.org/marcomontalbano/wa-vs-js-benchmark.svg?branch=master)](https://travis-ci.org/marcomontalbano/wa-vs-js-benchmark)

*A comparison between WebAssembly and Javascript made for ~~studying~~ fun.*

## What's in the box
@@ -12,7 +12,7 @@
"start": "webpack-dev-server --mode=development",
"start:dist": "npx serve dist",
"test:rs": "cargo build --verbose && cargo test --verbose",
"test": "npm run test",
"test": "npm run test:rs",
"build:wasm": "wasm-pack build",
"build:rs": "cargo build --release",
"build:js": "webpack --mode=production --config webpack.config.js",

0 comments on commit 9207c32

Please sign in to comment.
You can’t perform that action at this time.