try native travis test #2
This commit is contained in:
parent
bccad164ae
commit
b8f987e3f3
2 changed files with 4 additions and 9 deletions
|
|
@ -8,4 +8,6 @@ branches:
|
||||||
script:
|
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)
|
- ./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:
|
before_script:
|
||||||
- ./test/travis/before_script.sh
|
- sudo apt install -y libfcgi-dev
|
||||||
|
- sudo apt install -y nginx
|
||||||
|
- - ./test/travis/before_script.sh
|
||||||
|
|
|
||||||
|
|
@ -5,15 +5,8 @@
|
||||||
git clone https://github.com/clicon/cligen.git
|
git clone https://github.com/clicon/cligen.git
|
||||||
(cd cligen && ./configure && make && sudo make install)
|
(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
|
# This is for nginx/restconf
|
||||||
wwwuser=www-data
|
wwwuser=www-data
|
||||||
apt-get install -y libfcgi-dev
|
|
||||||
sudo useradd -M $wwwuser
|
|
||||||
sudo apt install -y nginx
|
|
||||||
|
|
||||||
# Nginx conf file
|
# Nginx conf file
|
||||||
cat<<EOF > /etc/nginx/nginx.conf
|
cat<<EOF > /etc/nginx/nginx.conf
|
||||||
|
|
@ -64,6 +57,6 @@ sudo nginx -c /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Start clixon
|
# Start clixon
|
||||||
sudo useradd -M -U clicon;
|
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;
|
sudo usermod -a -G clicon $wwwuser;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue