Commit dd07b2d9 authored by Håvard Farestveit's avatar Håvard Farestveit
Browse files

Updated gitlab-ci

parent 1f64a528
Pipeline #114795 passed with stages
in 3 minutes and 1 second
image: node:latest
stages:
- build
- test
- deploy
build:
stage: build
image: python:3.8.5-slim
before_script:
- apt-get clean
- pip install -r backend/secfit/requirements.txt
script:
- cd backend/secfit
- python manage.py runserver
test-backend:
stage: test
image: python:3.8.5-slim
......
......@@ -8,7 +8,7 @@ SecFit (Secure Fitness) is a hybrid mobile application for fitness logging.
#### Implementation and Testing of new features
#### DevOps
The project is set up with Gitlab's CI/CD. It is structured into three stages, build, testing, and deploy. The project needs to successfully build and approved by tested in order to deploy. The application is deployed to two Heroku Servers, one for hosting the frontend and the second for the backend. For more information check out `gitlab-ci.yml`
The project is set up with Gitlab's CI/CD. It is structured into two stages, testing, and deploy. The project needs to successfully build and get approved by tested in order to deploy. The application is deployed to two Heroku Servers, one for hosting the frontend and the second for the backend. For more information check out `gitlab-ci.yml`
### Task 2
In task 2 we used Django Testcase to create unit test for `./workouts/permissions.py` and for the class UserSerializer in `./users/serializer.py`. Theses are added to CI/CD and has to passed in order to deploy.
......
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