Skip to content
Snippets Groups Projects
Commit 1cf85db3 authored by Laurent's avatar Laurent
Browse files

add gitlab stages

parent fe688c65
Branches
Tags
No related merge requests found
......@@ -11,6 +11,7 @@ stages:
setup_db_job:
stage: setup_db
script:
- echo "DBNAME=${DBNAME}" > dbname
- wget http://sandbox.pergame.net/databases/default-ci-dump.sql.gz -O default-ci-dump.sql.gz
- mysql -u$DBUSER -p$DBPASS -e "drop schema if exists ${DBNAME}; create schema ${DBNAME}"
- zcat default-ci-dump.sql.gz | mysql -u$DBUSER -p$DBPASS $DBNAME
......@@ -20,10 +21,12 @@ setup_db_job:
test_job:
stage: test
script:
- source dbname
- source build.sh $DBNAME $DBUSER $DBPASS
cleanup_job:
stage: cleanup
script:
- source dbname
- mysql -u$DBUSER -p$DBPASS -e "drop schema if exists $DBNAME"
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