This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from chgibb/travis
Initial Travis Config
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ../ |