From ff790fcd248401162d4dcc23d3f5993585e16e10 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 2 Feb 2020 20:33:36 +0100 Subject: [PATCH] Updated bitbucket pipeline script Signed-off-by: Janos SUTO --- bitbucket-pipelines.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 351bf6fc..468c3398 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -4,7 +4,7 @@ # ----- # You can specify a custom docker image from Docker Hub as your build environment. -image: sutoj/builder:xenial +image: sutoj/builder:bionic clone: depth: 5 @@ -12,19 +12,11 @@ pipelines: default: - step: script: - - 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 - + - service mysql start + - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-database=mariadb + - make clean all install + - mysql -u piler -ppiler123 piler1 < /usr/share/piler/db-mysql.sql + - cd unit_tests + - ./run.sh + - cd .. + - phpunit