Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
69ba36a8
Commit
69ba36a8
authored
Mar 09, 2017
by
Zamil Majdy
Browse files
#140382397 #4 finalize gitlab-ci
parent
bf71c66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
69ba36a8
#
test:
#
script:
#
- apt-get update -qy
#
- apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev
#
- 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
test
:
script
:
-
apt-get update -qy
-
apt-get install -y python-dev python-pip sudo postgresql postgresql-client libpq-dev
-
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
staging
:
type
:
deploy
...
...
@@ -16,16 +16,14 @@ staging:
-
apt-get install sshpass
-
git clone https://gitlab.com/PPL2017csui/PPLA1.git
-
cd PPLA1
-
git checkout
UserStory1
-
git checkout
develop
-
git pull
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
mkdir ~/.ssh
-
echo -e "Host bot.recruit.id\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
-
sshpass -p yukcarikape git push deployment UserStory1:master --force
-
cd ..
-
sshpass -p yukcarikape git push deployment UserStory1:master --force
-
sshpass -p yukcarikape git push deployment develop:master --force
only
:
-
UserStory1
-
develop
production
:
type
:
deploy
...
...
@@ -35,7 +33,9 @@ production:
-
git clone https://gitlab.com/PPL2017csui/PPLA1.git
-
cd PPLA1
-
git checkout master
-
git pull
-
git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git
-
mkdir ~/.ssh
-
echo -e "Host bot.recruit.id\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
-
sshpass -p yukcarikape git push deployment master:master --force
only
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment