language: java
cache:
  directories:
    - $HOME/.m2
jdk: oraclejdk8
sudo: required
install:
  - chmod +x .travis/install-mariadb.sh
  - sudo .travis/install-mariadb.sh
before_script: mysql -uroot < .travis/create-db.sql
script: mvn -Dspring.datasource.password= verify

language: java
cache:
  directories:
    - $HOME/.m2
jdk: oraclejdk8
sudo: required
install: sudo -s source .travis/install-mariadb.sh
before_script: mysql -uroot < .travis/create-db.sql
script: mvn -Dspring.datasource.password= verify

Use source instead of chmod and execute
Use source instead of chmod and execute