Fakultas Ilmu Komputer UI

Commit 6053b0d1 authored by Syahrul Ardiansyah's avatar Syahrul Ardiansyah
Browse files

Add gitlab-ci.yml

parent 385a56f1
image: django:1.11
test:
script:
- python manage.py test
functional-test:
script:
- python functional_test.py
......@@ -2,6 +2,7 @@ from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import unittest
import time
import os
class NewVisitorTest(unittest.TestCase):
......@@ -19,7 +20,7 @@ class NewVisitorTest(unittest.TestCase):
def test_can_start_a_list_and_retrieve_it_later(self):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
self.browser.get('http://localhost:8000')
self.browser.get(os.environ['APP_URL'])
# She notices the page title and header mention to-do lists
self.assertIn('To-Do', self.browser.title)
......
Supports Markdown
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