From 73bd33f64b6819a1660f783bd5edeeae3e8acb2b Mon Sep 17 00:00:00 2001 From: Laurents Meyer Date: Mon, 23 Sep 2019 21:42:54 +0200 Subject: [PATCH] Just disable most of the test for travis. Signed-off-by: Laurents Meyer --- .travis.yml | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e7f63029..626150007 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,27 +3,27 @@ dist: xenial services: docker env: -# - IMAGE=mysql:5.6 -# NAME=mysql -# OMIT_FEATURES=Ed25519,Json,Sha256Password,RsaEncryption,LargePackets,CachingSha2Password,SessionTrack,Tls11,Tls12,UuidToBin -# - IMAGE=mysql:5.7 -# NAME=mysql -# OMIT_FEATURES=Ed25519,RsaEncryption,CachingSha2Password,Tls12,UuidToBin + - IMAGE=mysql:5.6 + NAME=mysql + OMIT_FEATURES=Ed25519,Json,Sha256Password,RsaEncryption,LargePackets,CachingSha2Password,SessionTrack,Tls11,Tls12,UuidToBin + - IMAGE=mysql:5.7 + NAME=mysql + OMIT_FEATURES=Ed25519,RsaEncryption,CachingSha2Password,Tls12,UuidToBin - IMAGE=mysql:8.0 NAME=mysql OMIT_FEATURES=Ed25519 -# - IMAGE=percona:5.7.22 -# NAME=percona -# OMIT_FEATURES=CachingSha2Password,Ed25519,UuidToBin -# - IMAGE=mariadb:10.2 -# NAME=mariadb -# OMIT_FEATURES=Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin -# - IMAGE=mariadb:10.3 -# NAME=mariadb -# OMIT_FEATURES=Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin -# - IMAGE=mariadb:10.4 -# NAME=mariadb -# OMIT_FEATURES=Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin + - IMAGE=percona:5.7.22 + NAME=percona + OMIT_FEATURES=CachingSha2Password,Ed25519,UuidToBin + - IMAGE=mariadb:10.2 + NAME=mariadb + OMIT_FEATURES=Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin + - IMAGE=mariadb:10.3 + NAME=mariadb + OMIT_FEATURES=Ed25519,Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin + - IMAGE=mariadb:10.4 + NAME=mariadb + OMIT_FEATURES=Json,Sha256Password,CachingSha2Password,RoundDateTime,UuidToBin before_install: - .ci/docker-run.sh $IMAGE $NAME 3307 $OMIT_FEATURES @@ -40,14 +40,23 @@ before_install: - export DOTNET_ROOT=$HOME/dotnet - export PATH=$HOME/dotnet:$PATH - dotnet --info +#- sudo apt-get -y install haveged +#- sudo service haveged start +# make tmpfs and run MySQL on it for reasonable performance +#- sudo mkdir /mnt/ramdisk +#- sudo mount -t tmpfs -o size=1024m tmpfs /mnt/ramdisk +#- sudo service mysql stop +#- sudo mv /var/lib/mysql /mnt/ramdisk +#- sudo ln -s /mnt/ramdisk/mysql /var/lib/mysql +#- sudo service mysql start script: - dotnet restore -#- pushd tests/MySqlConnector.Tests && dotnet test -c Release && popd +- pushd tests/MySqlConnector.Tests && dotnet test -c Release && popd #- pushd tests/Conformance.Tests && CONNECTION_STRING="Server=localhost;Port=3307;User Id=mysqltest;Password=test;SSL Mode=None" dotnet test -c Release && popd -- pushd tests/SideBySide -- dotnet build SideBySide.csproj -c Release -f netcoreapp2.0 -- echo 'Executing netcoreapp1.1.2 tests with No Compression, No SSL' && ../../.ci/use-config.sh config.json 172.17.0.1 3307 $NAME $OMIT_FEATURES && time dotnet test -c Release -f netcoreapp1.1.2 -v:n -d:diagnostics.log +#- pushd tests/SideBySide +#- dotnet build SideBySide.csproj -c Release -f netcoreapp2.0 +#- echo 'Executing netcoreapp1.1.2 tests with No Compression, No SSL' && ../../.ci/use-config.sh config.json 172.17.0.1 3307 $NAME $OMIT_FEATURES && time dotnet test -c Release -f netcoreapp1.1.2 -v:n -d:diagnostics.log #- echo 'Executing netcoreapp2.0 tests with No Compression, No SSL' && ../../.ci/use-config.sh config.json 172.17.0.1 3307 $NAME $OMIT_FEATURES && time dotnet test -c Release -f netcoreapp2.0 #- echo 'Executing netcoreapp2.1 tests with No Compression, No SSL' && ../../.ci/use-config.sh config.json 172.17.0.1 3307 $NAME $OMIT_FEATURES && time dotnet test -c Release -f netcoreapp2.1 #- echo 'Executing netcoreapp2.1 tests with Compression, No SSL' && ../../.ci/use-config.sh config.compression.json 172.17.0.1 3307 $NAME $OMIT_FEATURES && time dotnet test -c Release -f netcoreapp2.1