improving bitbucket pipeline

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2017-06-25 22:05:06 +02:00
parent 8eba3a0edb
commit 2dc31b59c0
2 changed files with 25 additions and 4 deletions

View File

@ -3,10 +3,28 @@
# Only use spaces to indent your .yml configuration. # Only use spaces to indent your .yml configuration.
# ----- # -----
# You can specify a custom docker image from Docker Hub as your build environment. # You can specify a custom docker image from Docker Hub as your build environment.
# image: docker-image:tag
image: sutoj/builder:xenial
clone:
depth: 5
pipelines: pipelines:
default: default:
- step: - step:
script: script:
- echo "Everything is awesome!" - echo "Everything is awesome!"
branches:
epoll:
- step:
script:
- service mysql start
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-database=mariadb --enable-tcpwrappers
- make clean all install
- echo "create database piler character set 'utf8mb4'" | mysql
- echo "grant all privileges on piler.* to piler@localhost identified by 'piler123'" | mysql
- echo "flush privileges" | mysql
- mysql -u piler -ppiler123 piler < /usr/share/piler/db-mysql.sql
- cd unit_tests
- ./run.sh

View File

@ -1,9 +1,12 @@
#!/bin/bash #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
set -x
LD_LIBRARY_PATH=../src ./check_parser_utils LD_LIBRARY_PATH=../src ./check_parser_utils
LD_LIBRARY_PATH=../src ./check_parser LD_LIBRARY_PATH=../src ./check_parser
LD_LIBRARY_PATH=../src ./check_rules LD_LIBRARY_PATH=../src ./check_rules
LD_LIBRARY_PATH=../src ./check_digest LD_LIBRARY_PATH=../src ./check_digest
LD_LIBRARY_PATH=../src ./check_mydomains LD_LIBRARY_PATH=../src ./check_mydomains