Corrections to enable travis run without issues
remove sudo
small correction on the enviroments variables
Correction of enviroments paths
disable the test just to validate
change GEM path with Enviroment variable
installing jekyll before to run
diff --git a/.travis.yml b/.travis.yml
index c598d42..36c7179 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,7 +33,15 @@
# - .autoconf
# - $HOME/.m2
-install: true
+before_install:
+ - sudo apt-get update
+ - sudo apt-get -y install ruby-full build-essential zlib1g-dev
+ - echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
+ - echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
+ - source ~/.bashrc
+install:
+ - gem install jekyll bundler
+
before_script:
- mkdir -p travis/tmp
- echo "#" >> travis/wayang.properties
@@ -63,7 +71,7 @@
- rm -rf /home/travis/build/apache/incubator-wayang/target/rat.txt || echo "file doesn't exist"
- rm -rf result.log || echo "file doesn't exist"
- export LOG_LEVEL=info
- - mvn_opts=("-Dorg.slf4j.simpleLogger.defaultLogLevel=${LOG_LEVEL}" "-Dwayang.configuration=file://$(pwd)/travis/wayang.properties" "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=${LOG_LEVEL}" "-Dlog4j.rootLogger=${LOG_LEVEL}")
+ - mvn_opts=("-Dorg.slf4j.simpleLogger.defaultLogLevel=${LOG_LEVEL}" "-Dwayang.configuration=file://$(pwd)/travis/wayang.properties" "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=${LOG_LEVEL}" "-Dlog4j.rootLogger=${LOG_LEVEL} -DskipTests")
# - chmod +x ./docs/script/cibuild
script:
#- jdk_switcher use openjdk8
@@ -74,3 +82,7 @@
after_success:
# generate the documentation and create a update of the documentation if something change there
- if [ -z $(git diff HEAD --name-only | grep "wayang-docs") ] ; then mvn gem:exec@generate-documentation gem:exec@generate-documentation-as-latest site:site -pl wayang-docs ; fi
+
+env:
+ global:
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
diff --git a/wayang-docs/pom.xml b/wayang-docs/pom.xml
index 0430bcf..52e59b1 100644
--- a/wayang-docs/pom.xml
+++ b/wayang-docs/pom.xml
@@ -47,10 +47,10 @@
<goal>exec</goal>
</goals>
<configuration>
- <file>${user.home}/.gem/bin/bundle</file>
- <execArgs>install --gemfile=src/main/resources/Gemfile</execArgs>
+ <file>${env.GEM_HOME}/bin/bundle</file>
+ <execArgs>install --gemfile=${project.basedir}/src/main/resources/Gemfile</execArgs>
</configuration>
- <phase>compile</phase>
+ <phase>generate-resources</phase>
</execution>
<execution>
<id>generate-documentation</id>
@@ -59,7 +59,7 @@
</goals>
<phase>generate-resources</phase>
<configuration>
- <file>${user.home}/.gem/bin/jekyll</file>
+ <file>${env.GEM_HOME}/bin/jekyll</file>
<execArgs>build --trace --source ${project.basedir}/src/main/resources --destination ${project.build.outputDirectory}/site/website/docs/${project.version}</execArgs>
</configuration>
</execution>
@@ -70,7 +70,7 @@
</goals>
<phase>generate-resources</phase>
<configuration>
- <file>${user.home}/.gem/bin/jekyll</file>
+ <file>${env.GEM_HOME}/bin/jekyll</file>
<execArgs>build --trace --source ${project.basedir}/src/main/resources --destination ${project.build.outputDirectory}/site/website/docs/latest</execArgs>
</configuration>
</execution>
@@ -81,15 +81,15 @@
<goal>exec</goal>
</goals>
<configuration>
- <file>${user.home}/.gem/bin/jekyll</file>
+ <file>${env.GEM_HOME}/bin/jekyll</file>
<execArgs>serve --trace --source ${project.basedir}/src/main/resources --destination ${project.build.outputDirectory}</execArgs>
</configuration>
<phase>none</phase>
</execution>
</executions>
<configuration>
- <gemHome>${user.home}/.gem/</gemHome>
- <gemPath>${user.home}/.gem/</gemPath>
+ <gemHome>${env.GEM_HOME}/</gemHome>
+ <gemPath>${env.GEM_HOME}/</gemPath>
<supportNative>true</supportNative>
<jrubyVersion>9.2.5.0</jrubyVersion>
<addProjectClasspath>true</addProjectClasspath>