#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 script: - apt-get update -qy - apt-get install sshpass - git clone https://gitlab.com/PPL2017csui/PPLA1.git - cd PPLA1 - git checkout UserStory1 - git pull - git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git - sshpass -p yukcarikape git push deployment UserStory1:master --force - cd .. - sshpass -p yukcarikape git push deployment UserStory1:master --force only: - UserStory1 production: type: deploy script: - apt-get update -qy - apt-get install sshpass - git clone https://gitlab.com/PPL2017csui/PPLA1.git - cd PPLA1 - git checkout master - git remote add deployment ssh://kape@bot.recruit.id:8022/home/kape.git - sshpass -p yukcarikape git push deployment master:master --force only: - master