Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #48 from chgibb/travis
Browse files Browse the repository at this point in the history
Initial Travis Config
  • Loading branch information
Max Brunsfeld committed Mar 26, 2018
2 parents 001967a + 1693ae5 commit c0b929b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
@@ -0,0 +1,12 @@
language: rust
rust:
- stable

before_install:
- sudo apt-get -qq update
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
- command -v nvm
- nvm install v8.9.3

script:
- bash scripts/test.bash
22 changes: 22 additions & 0 deletions scripts/test.bash
@@ -0,0 +1,22 @@
#!/bin/bash
(set -o igncr) 2>/dev/null && set -o igncr; # For Cygwin/MSys2 on Windows compatibility

cargo build
if [ $? != 0 ]; then
exit 1
fi
cargo test
if [ $? != 0 ]; then
exit 1
fi

cd xray_electron
npm install
if [ $? != 0 ]; then
exit 1
fi
npm test
if [ $? != 0 ]; then
exit 1
fi
cd ../

0 comments on commit c0b929b

Please sign in to comment.