Skip to content

Commit

Permalink
Rollback + download hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
LesTR committed Nov 12, 2020
1 parent 3030b9f commit 7bb9e67
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: focal
dist: xenial

sudo: false

Expand All @@ -11,18 +11,22 @@ addons:
apt:
packages:
- realpath
- hugo
sonarcloud:
organization: datadriven

install: true

before_script:
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh -O $TRAVIS_BUILD_DIR/install-jdk.sh
- chmod u+x $TRAVIS_BUILD_DIR/install-jdk.sh
- wget https://github.com/gohugoio/hugo/releases/download/v0.78.1/hugo_0.78.1_Linux-64bit.tar.gz -O $TRAVIS_BUILD_DIR/hugo.tar.gz
- tar -xzf $TRAVIS_BUILD_DIR/hugo.tar.gz
- 'export PATH="$TRAVIS_BUILD_DIR:$PATH"'
- hugo version
script:
- mvn spotless:check -B -V && mvn install -B -V -Pallow-snapshots,with-coverage,travis -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.shade=error || (sleep 5; exit 1)
- mvn spotless:check -B -V || exit 1
- mvn install -B -V -Pallow-snapshots,with-coverage,travis -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugins.shade=error || (sleep 5; exit 1)
- export JAVA_HOME=$HOME/openjdk11
- chmod u+x $TRAVIS_BUILD_DIR/install-jdk.sh
- $TRAVIS_BUILD_DIR/install-jdk.sh --feature 11 --target $JAVA_HOME
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ] || [ "${TRAVIS_BRANCH}" == "master" ]; then mvn sonar:sonar -B -V -Pallow-snapshots,with-coverage,travis; fi

Expand Down

0 comments on commit 7bb9e67

Please sign in to comment.