os:
  - ubuntu/trusty64
cassandra:
  - 1.2
  - 2.0
  - 2.1
  - 2.2
build:
  - script: |
      # Set the Java paths (for CCM)
      export JAVA_HOME=$CCM_JAVA_HOME
      export PATH=$JAVA_HOME/bin:$PATH

      # Define alias for Nuget
      nuget() {
        mono /home/jenkins/nuget/NuGet.exe "$@"
      }
      export -f nuget

      # Define Cassandra runtime
      export CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION

      # Install the required packages
      export EnableNuGetPackageRestore=true
      nuget restore src/Cassandra.sln
      nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner

      # Compile the driver and test code
      xbuild /p:Configuration=Release /v:m /p:restorepackages=false src/Cassandra.sln

      # Run the tests
      echo "==========RUNNING FULL SUITE OF TESTS=========="
      mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe src/Cassandra.Tests/bin/Release/Cassandra.Tests.dll src/Cassandra.IntegrationTests/bin/Release/Cassandra.IntegrationTests.dll -labels -exclude=long,duration
  - nunit:
    - "TestResult.xml"

os:
  - ubuntu/trusty64
cassandra:
  - 2.0
  - 2.1
  - 2.2
build:
  - script: |
      # Set the Java paths (for CCM)
      export JAVA_HOME=$CCM_JAVA_HOME
      export PATH=$JAVA_HOME/bin:$PATH

      # Define alias for Nuget
      nuget() {
        mono /home/jenkins/nuget/NuGet.exe "$@"
      }
      export -f nuget

      # Define Cassandra runtime
      export CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION

      # Install the required packages
      export EnableNuGetPackageRestore=true
      nuget restore src/Cassandra.sln
      nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner

      # Compile the driver and test code
      xbuild /p:Configuration=Release /v:m /p:restorepackages=false src/Cassandra.sln

      # Run the tests
      echo "==========RUNNING FULL SUITE OF TESTS=========="
      mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe src/Cassandra.Tests/bin/Release/Cassandra.Tests.dll src/Cassandra.IntegrationTests/bin/Release/Cassandra.IntegrationTests.dll -labels -exclude=long,duration
  - nunit:
    - "TestResult.xml"

Remove Cassandra 1.2 on CI
Remove Cassandra 1.2 on CI