Commit c8c9eeb1 authored by Noe Nieto's avatar Noe Nieto 💬
Browse files

Update .gitlab-ci.yml

parent 9a28b1d7
......@@ -2,33 +2,32 @@ image: pureos/amber:latest
stages:
- test
- deb
test:
tags:
- libremone
stage: test
script:
echo "Hello world!"
# this configures Django application to use attached postgres database that is run on `postgres` host
- export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app
- apt-get update -qy
- apt-get install -y python-dev python-pip
- pip install -r requirements.txt
- python manage.py test
- echo "Hello world!"
# this configures Django application to use attached postgres database that is run on `postgres` host
- export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app
- apt-get update -qy
- apt-get install -y python-dev python-pip
- pip install -r requirements.txt
- python manage.py test
deb:
tags:
- libremone
stage: deb
script:
- rbenv global 2.4.0
- rbenv exec gem install fpm
- pip3 install --user setuptools
- make clean
- make debsource
artifacts:
name: "ldh-middleware.deb"
paths:
- ./*.deb
expire_in: 26 weeks
tags:
- libremone
stage: deb
script:
- rbenv global 2.4.0
- rbenv exec gem install fpm
- pip3 install --user setuptools
- make clean
- make debsource
artifacts:
name: "ldh-middleware.deb"
paths:
- ./*.deb
expire_in: 26 weeks
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