From 7e19f6bdfc22cce3002815586beca58b0236fdb2 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Thu, 14 Sep 2017 16:58:09 -0700 Subject: [PATCH] Add Kokoro test script --- kokoro-linux.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 kokoro-linux.sh diff --git a/kokoro-linux.sh b/kokoro-linux.sh new file mode 100644 index 00000000..90f41e6e --- /dev/null +++ b/kokoro-linux.sh @@ -0,0 +1,20 @@ +# Install NVM +curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash + +# Load NVM +source ~/.nvm/nvm.sh + +node_versions=( 4 5 6 7 8 ) + +# TODO(mlumish): Add electron tests + +# Install dependencies and link packages together +npm install +gulp setup + +for version in ${node_versions[@]} +do + nvm install $version + # Rebuild libraries and run tests + gulp native.test +done