microting/eform-sdk-dotnet

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dist: bionic
language: csharp
solution: eformSDK.sln
mono: none
dotnet: 3.1.101
branches:
  only:
    - master
    - stable
    - netcore3
services:
- mysql
before_script:
  - wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb
  - sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
  - sudo apt-get update -q
  - sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
  - sudo systemctl restart mysql
  - sudo mysql_upgrade
  - mysql --version
jobs:
  include:
    - stage: testing
      os: linux
      arch:
        - amd64
      script: ./unit-tests.sh
    - stage: testing
      os: linux
      arch:
        - amd64
      script: ./integration-tests-core.sh
    - stage: testing
      os: linux
      arch:
        - amd64
      script: ./integration-tests-sqlcontroller.sh
    #- stage: testing
    #  os: linux
    #  arch:
    #    - arm64
    #  script: ./unit-tests.sh
    #- stage: testing
    #  os: linux
    #  arch:
    #    - arm64
    #  script: ./integration-tests-core.sh
    #- stage: testing
    #  os: linux
    #  arch:
    #    - arm64
    #  script: ./integration-tests-sqlcontroller.sh
    - stage: "Deploy"
      os: linux
      arch: amd64
      script: ./deploy.sh
      on:
        all_branches: true
        condition: $TRAVIS_BRANCH =~ ^(master|netcore3)$