Commit 63332873 authored by Ziirish's avatar Ziirish

add: build development package

parent 2bacf30d
stages:
- test
- build
- deploy
py2.7:
stage: test
image: python:2.7
script:
- /bin/bash test/run_tests.sh
......@@ -9,6 +15,7 @@ py2.7:
- tags
py3.4:
stage: test
image: python:3.4
script:
- /bin/bash test/run_tests.sh
......@@ -16,3 +23,12 @@ py3.4:
- docker
except:
- tags
build-dev:
stage: build
script:
- /bin/bash test/run_build.sh
tags:
- build
only:
- master
#!/bin/bash
PYTHON=$(which python)
ISROOT=0
UPDATED=0
function update() {
[ $UPDATED -eq 0 ] && [ $ISROOT -eq 1 ] && {
apt-get update
UPDATED=1
}
return 0
}
echo "test requirements"
[ $UID -eq 0 ] && ISROOT=1
[ -x "$PYTHON" ] && {
echo "python seems to be installed"
} || {
echo "python is missing..."
exit 1
}
echo "install build requirements"
update
[ $ISROOT -eq 1 ] && apt-get install -y nodejs nodejs-legacy npm
echo "installing bower"
npm install -g bower
echo "building dist"
$PYTHON setup.py sdist
echo "publishing build"
cp dist/burp-ui*.tar.gz /builds/burp-ui.dev.tar.gz
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