test

请不要把重要的私人代码放到本gitlab服务器,本服务器是用于测试和学习,会不定期清理私人的代码仓库,敬请谅解。

Commit c4e3e159 authored by Test's avatar Test

init

Signed-off-by: Test's avatarPeng Xiao <xiaoquwl@gmail.com>
parent 306a0d06
variables:
GIT_SSL_NO_VERIFY: "1"
stages:
- test
- build
- deploy
pep8:
stage: test
image: python:2.7
script:
- pip install tox
- tox -e pep8
tags:
- python27
unittest-py27:
stage: test
image: python:2.7
script:
- pip install tox
- tox -e py27
- export
- echo $PENXIAO_TEST
tags:
- python27
unittest-py34:
stage: test
image: python:3.4
script:
- pip install tox
- tox -e py34
tags:
- python34
sphnix:
stage: test
image: python:2.7
script:
- pip install tox
- tox -e docs
tags:
- python27
build:
stage: build
tags:
- shell
script:
- docker build -t skeleton .
only:
- master
deploy:
stage: deploy
tags:
- shell
script:
- scripts/deploy.sh
- export
- echo $PENXIAO_TEST
only:
- master
<footer>
<div class="container">
<small>
<span>© <a href="mailto:penxiao@cisco.com">Cisco Systems</a></span>
<span>© <a href="mailto:xiaoquwl@gmail.com">GitLab Demo</a></span>
</small>
</div>
</footer>
......@@ -18,7 +18,7 @@ class TestMainBlueprint(BaseTestCase):
def test_footer(self):
response = self.client.get('/', follow_redirects=True)
self.assertEqual(response.status_code, 200)
self.assertIn(b'Cisco Systems', response.data)
self.assertIn(b'GitLab Demo', response.data)
def test_about(self):
# Ensure about route behaves correctly.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment