From 1cc6f910fe1f766ac481dc821016e6f499cd8938 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 5 Sep 2021 17:09:00 +0100 Subject: [PATCH] Fix MySQL CREATE TABLE and reinstate unit tests --- .woodpecker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 385eac5..81d3fa7 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -10,12 +10,12 @@ pipeline: # mount: # - 'vendor' -# unitTests: -# image: rust:1.54.0-slim -# commands: -# - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev -# - cargo build --all -# - cargo test --all + unitTests: + image: rust:1.54.0-slim + commands: + - apt-get -qq update && apt-get -yqq install pkg-config libssl-dev build-essential libsqlite3-dev + - cargo build --all + - cargo test --all testSuite: image: rust:1.54.0-slim-bullseye @@ -26,7 +26,7 @@ pipeline: - su postgres -c 'createuser root' - su postgres -c 'createdb -O root testsuitedb' - psql testsuitedb -c 'CREATE TABLE testsuitetable ();' - - mysql -e 'CREATE DATABASE testsuitemydb; USE testsuitemydb; CREATE TABLE sometable (INT PRIMARY KEY); INSERT INTO sometable VALUES (42);' + - mysql -e 'CREATE DATABASE testsuitemydb; USE testsuitemydb; CREATE TABLE sometable (id INT PRIMARY KEY); INSERT INTO sometable VALUES (42);' - cargo install -q --path yama - cargo install -q --path datman - python3.9 -m venv testsuite/.venv