Fakultas Ilmu Komputer UI

Commit 6bcb9e94 authored by M. Reza Qorib's avatar M. Reza Qorib
Browse files

#140382397 #3 Integrate front-end test with gitlab-ci

parent fbfd18fe
test:
script:
- apt-get update -qy
- curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
- apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev
- sudo apt-get install -y nodejs
- sudo apt-get install -y npm
- npm install
- service postgresql start
- sudo -u postgres psql -c "CREATE USER kape WITH PASSWORD 'kape' CREATEDB"
- sudo -u postgres psql -c "CREATE DATABASE kape OWNER kape"
- pip install -r requirements.txt
- python manage.py migrate
- python manage.py test
- karma start
staging:
type: deploy
......
......@@ -56,7 +56,7 @@ TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
NOSE_ARGS = [
'--with-coverage',
'--cover-package=kape.views',
'--cover-html-dir=test',
'--cover-html-dir=test/backend',
'--cover-html'
''
]
......
......@@ -22,7 +22,8 @@ module.exports = function (config) {
},
coverageReporter: {
type: 'html', //produces a html document after code is run
dir: 'coverage/' //path to created html doc
dir: 'test/frontend', //path to created html doc
subdir: '.'
}
});
};
\ No newline at end of file
......@@ -8,3 +8,4 @@ pyparsing==2.1.10
six==1.10.0
gunicorn
django-nose
coverage
\ No newline at end of file
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