2 Star 2 Fork 0

evoup.gitee / monitor_pass

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.yml 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
matrix:
include:
- language: python
python:
- 3.5
branches:
only:
- master
services:
- mysql
before_install:
- openssl aes-256-cbc -K $encrypted_8833d0168ab5_key -iv $encrypted_8833d0168ab5_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host evoupsight.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- sudo mkdir -p /services/logs/
- sudo chown -R travis /services/logs/
- cd monitor_api2/
- mysql -e "CREATE USER 'dba'@'localhost' IDENTIFIED BY '123456';"
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'dba'@'localhost';"
- mysql -e 'FLUSH PRIVILEGES;'
env: "-DJANGO=2.13 DB=mysql"
install:
- pip install -r requirements.txt
script:
- DJANGO_SETTINGS_MODULE='web.travis_settings' ./manage.py test
after_success:
- ssh -i ./deploy_key -p6000 root@evoupsight.com /projects/shell/deploy_backend.sh
- language: node_js
node_js:
- "10.15.3"
branches:
only:
- master
cache:
directories:
- node_modules
before_install:
- openssl aes-256-cbc -K $encrypted_8833d0168ab5_key -iv $encrypted_8833d0168ab5_iv
-in deploy_key.enc -out ./deploy_key -d
- eval "$(ssh-agent -s)"
- chmod 600 ./deploy_key
- echo -e "Host evoupsight.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add ./deploy_key
- cd monitor_ui3/
install:
- npm install
script:
- npm run build
after_success:
- ssh -i ./deploy_key -p6000 root@evoupsight.com /projects/shell/deploy_front.sh
1
https://gitee.com/evoup/monitor_pass.git
git@gitee.com:evoup/monitor_pass.git
evoup
monitor_pass
monitor_pass
master

搜索帮助