diff --git a/.travis.yml b/.travis.yml index ad399b78..6faa0075 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,6 @@ branches: script: - ./configure --with-restconf=fcgi && make && sudo make install && (cd example; make; sudo make install) && (cd util; make; sudo make install) && (cd test; make all) before_script: - - ./test/travis/before_script.sh +- sudo apt install -y libfcgi-dev +- sudo apt install -y nginx +- - ./test/travis/before_script.sh diff --git a/test/travis/before_script.sh b/test/travis/before_script.sh index accca619..44d33f6d 100755 --- a/test/travis/before_script.sh +++ b/test/travis/before_script.sh @@ -5,15 +5,8 @@ git clone https://github.com/clicon/cligen.git (cd cligen && ./configure && make && sudo make install) -# clixon utilities -sudo apt install -y libcurl4-openssl-dev -sudo apt install -y g++ - # This is for nginx/restconf wwwuser=www-data -apt-get install -y libfcgi-dev -sudo useradd -M $wwwuser -sudo apt install -y nginx # Nginx conf file cat< /etc/nginx/nginx.conf @@ -64,6 +57,6 @@ sudo nginx -c /etc/nginx/nginx.conf # Start clixon sudo useradd -M -U clicon; -sudo usermod -a -G clicon vagrant; # start clixon tests as this users +sudo usermod -a -G clicon $(whoami); # start clixon tests as this users sudo usermod -a -G clicon $wwwuser;