pm2-gui/test/index.sh

23 lines
707 B
Bash

#!/usr/bin/env bash
SRC=$(cd $(dirname "$0"); pwd)
source "${SRC}/bash/include.sh"
set -e
echo -e "\x1B[1m############ TEST SUITE ############\x1B[0m"
echo -e "\x1B[1mpm2-gui Command = $pg\x1B[0m"
echo -e "\x1B[1mNode version = $nodeVersion\x1B[0m"
$node -e "var os = require('os'); console.log('\x1B[1march : %s\nplatform : %s\nrelease : %s\ntype : %s\nmem : %d\x1B[0m', os.arch(), os.platform(), os.release(), os.type(), os.totalmem())"
echo -e "\x1B[1m####################################\x1B[0m"
echo -e ""
if [ ! -z "$TRAVIS" ]; then
export PM2_HOME="/home/travis/.pm2"
mkdir "$PM2_HOME"
cp "$fixtures/conf.js" "$PM2_HOME/conf.js"
fi
bash ./test/bash/config.sh
bash ./test/bash/interface.sh