解决travis出现./gradlew: Permission denied错误

解决方法:在.travis.yml文件中增加
before_script:

- chmod +x gradlew

完整文件如下:

language: java
install: true
before_script:
  - chmod +x gradlew
script: ./gradlew clean build
before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
jdk:
  - oraclejdk8


你可能感兴趣的:(java)