1 Star 0 Fork 0

李梦凡/VeryNginx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
sudo: required
dist: trusty
os: linux
language: c
compiler:
- gcc
addons:
apt:
packages:
- python3
- python-pip
- python3-pip
cache:
apt: true
directories:
- $HOME/.cache/pip
- /opt/verynginx
before_install:
- if [ ! -d /opt/verynginx/openresty ]; then python3 install.py install openresty ; fi
- sudo rm -rf /opt/verynginx/verynginx
- sudo adduser --system --no-create-home --group nginx
install:
- sudo python3 -m pip install -r test/requirements.txt
- sudo python3 install.py install verynginx
before_script:
- if [ ! -f /opt/verynginx/openresty/nginx/logs/error.log ]; then touch /opt/verynginx/openresty/nginx/logs/error.log;sudo chown nginx:nginx /opt/verynginx/openresty/nginx/logs/error.log ; fi
- sudo /opt/verynginx/openresty/nginx/sbin/nginx
- sudo /opt/verynginx/openresty/nginx/sbin/nginx -s stop
- echo -e "127.0.0.1 a.vntest.com\n127.0.0.1 b.vntest.com\n127.0.0.1 c.vntest.com" | sudo tee -a /etc/hosts
script:
- sudo python3 test/test.py
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/vanlemon/VeryNginx.git
git@gitee.com:vanlemon/VeryNginx.git
vanlemon
VeryNginx
VeryNginx
master

搜索帮助