Skip to content
Permalink
Browse files

Add test to Travis

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

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

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 = travis

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 c301192

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