Skip to content
Permalink
Browse files

Add test to Travis

  • Loading branch information...
marcomontalbano committed Feb 20, 2019
1 parent 93ab70c commit 2feee586262fb6de7663a81f3cdd398187398cd6
Showing with 16 additions and 4 deletions.
  1. +15 −3 .travis.yml
  2. +1 −1 package.json
@@ -3,11 +3,23 @@ language: node_js
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
- npm test

stages:
- test
- name: deploy
if: branch = addtravis

jobs:
include:
- stage: deploy
node_js: "8"
script:
- npm run build
- npm run publish
@@ -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 2feee58

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