-
-
Notifications
You must be signed in to change notification settings - Fork 739
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 #1729 from StackStorm/travis-integration-tests
Integration Tests via Travis
- Loading branch information
Showing
7 changed files
with
79 additions
and
39 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
; http://nedbatchelder.com/code/coverage/config.html | ||
|
||
[run] | ||
include = st2* | ||
omit = *tests/* |
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
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
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
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,41 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if [ "$(whoami)" != 'root' ]; then | ||
echo 'Please run with sudo' | ||
exit 2 | ||
fi | ||
|
||
# create and configure user | ||
# proudly stolen from `./tools/st2_deploy.sh` | ||
TYPE='debs' | ||
SYSTEMUSER='stanley' | ||
|
||
echo "###########################################################################################" | ||
echo "# Creating system user: ${SYSTEMUSER}" | ||
useradd ${SYSTEMUSER} | ||
mkdir -p /home/${SYSTEMUSER}/.ssh | ||
chmod 0700 /home/${SYSTEMUSER}/.ssh | ||
mkdir -p /home/${SYSTEMUSER}/${TYPE} | ||
echo "###########################################################################################" | ||
echo "# Generating system user ssh keys" | ||
ssh-keygen -f /home/${SYSTEMUSER}/.ssh/stanley_rsa -P "" | ||
cat /home/${SYSTEMUSER}/.ssh/stanley_rsa.pub >> /home/${SYSTEMUSER}/.ssh/authorized_keys | ||
chmod 0600 /home/${SYSTEMUSER}/.ssh/authorized_keys | ||
chown -R ${SYSTEMUSER}:${SYSTEMUSER} /home/${SYSTEMUSER} | ||
if [ $(grep 'stanley' /etc/sudoers.d/* &> /dev/null; echo $?) != 0 ]; then | ||
echo "${SYSTEMUSER} ALL=(ALL) NOPASSWD: SETENV: ALL" >> /etc/sudoers.d/st2 | ||
chmod 0440 /etc/sudoers.d/st2 | ||
fi | ||
# make sure requiretty is disabled. | ||
sed -i "s/^Defaults\s\+requiretty/# Defaults requiretty/g" /etc/sudoers | ||
|
||
# install st2 client | ||
python ./st2client/setup.py develop | ||
st2 --version | ||
|
||
# install screen | ||
apt-get install -y screen | ||
|
||
# start dev environment in screens | ||
./tools/launchdev.sh start |
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
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