Skip to content

Commit 0710b37

Browse files
author
chaoyiwang
authored
Merge pull request #49 from laincloud/codecov
for codecov
2 parents a0c51ac + 8c6d123 commit 0710b37

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ script:
1515
- lain config save-global private_docker_registry registry.lain.local
1616
- lain build
1717
- lain test
18+
- LAIN_APPNAME=console
19+
- LAIN_IMAGE_VERSION="$(git show -s --format=%ct $TRAVIS_COMMIT)-$TRAVIS_COMMIT"
20+
- ci_env=`bash <(curl -s https://codecov.io/env)`
21+
- docker run $c1_env --name console-build $LAIN_APPNAME:build-$LAIN_IMAGE_VERSION bash -c 'rm -rf * && yum install -y git hg && git clone https://github.com/laincloud/console && cd console && pip install codecov && pip install -r pip-req.txt && mkdir -p /lain/logs && CONSOLE_DEBUG=1 py.test --cov=./ && bash <(curl -s https://codecov.io/bash) && codecov --token=eea15d44-ae00-4757-af89-4b41cf8f26be'
1822

1923
after_success:
2024
- LAIN_APPNAME=console

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/laincloud/console.svg?branch=master)](https://travis-ci.org/laincloud/console)
44
[![MIT license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)
5+
[![codecov](https://codecov.io/gh/laincloud/console/branch/master/graph/badge.svg)](https://codecov.io/gh/laincloud/console)
56

67
## 基本介绍
78
LAIN Console 组件属于 LAIN 集群的 layer1 组件,是 sa/op/dev/testing 使用 LAIN 的控制台。LAIN Console 使用 Django 搭建,主要提供的功能包括:

lain.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test:
2727
script:
2828
- mkdir /lain/logs/
2929
- make pylint test
30+
- CONSOLE_DEBUG=1 py.test --cov=.
3031

3132
web:
3233
cmd: ./archon.sh

0 commit comments

Comments
 (0)