Minor fixes and added travis configuration file

This commit is contained in:
ronivay
2018-07-26 17:52:42 +03:00
parent caf258bc31
commit a912401c27
4 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ tests/*
!tests/Debian
!tests/Debian/Vagrantfile
!tests/run-tests.sh
!tests/README.md

5
.travis.yml Normal file
View File

@@ -0,0 +1,5 @@
sudo: require
language: bash
script:
- ./xo-install.sh --run-test

View File

@@ -20,7 +20,7 @@ Ubuntu HTTP Check: success
Requirements:
```
OSX
OSX (not tested with anything else since this is mainly for my own use)
Vagrant
Virtualbox
````

View File

@@ -317,6 +317,7 @@ function InstallXO {
else
echo
echo "Looks like there was a problem when starting xo-server/reading journalctl. Please see logs for more details"
exit 1;
fi
} 2>$LOGFILE
@@ -345,6 +346,17 @@ function UpdateXOAutomate {
UpdateNodeYarn
UpdateXO
;;
--run-test)
if [ $OSNAME == "CentOS" ]; then
InstallDependenciesCentOS
InstallXO
exit 0
else
InstallDependenciesDebian
InstallXO
exit 0
fi
;;
*)
StartUpScreen
;;