Fakultas Ilmu Komputer UI

Commit 477187ac authored by Zamil Majdy's avatar Zamil Majdy
Browse files

#140382397 #5 Update CI script (add postgre)

parent 2b3a1f51
......@@ -3,7 +3,14 @@ test:
- export DATABASE_URL=postgres://kape:kape@104.236.76.161:5432/kape
- apt-get update -qy
- apt-get install -y python-dev python-pip
- sudo apt-get install -y postgresql postgresql-client libpq-dev
- sudo service postgresql start
- sudo -u postgres psql -d kape
- CREATE USER kape WITH PASSWORD 'kape' CREATEDB;
- CREATE DATABASE kape OWNER kape;
- \q
- pip install -r requirements.txt
- python manage.py migrate
- python manage.py test
staging:
......
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