You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by rp...@apache.org on 2022/04/04 08:47:20 UTC
[incubator-wayang] branch main updated: [WAYANG-128] travis delete and documentation generation created (#136)
This is an automated email from the ASF dual-hosted git repository.
rpardomeza pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-wayang.git
The following commit(s) were added to refs/heads/main by this push:
new d7eec6db [WAYANG-128] travis delete and documentation generation created (#136)
d7eec6db is described below
commit d7eec6dbd76a79626424746178986de85838f12a
Author: Bertty Contreras-Rojas <be...@databloom.ai>
AuthorDate: Mon Apr 4 10:47:15 2022 +0200
[WAYANG-128] travis delete and documentation generation created (#136)
Signed-off-by: bertty <be...@apache.org>
---
.github/workflows/documentation.yml | 57 ++++++++++++++++++++++
.travis.yml | 96 -------------------------------------
2 files changed, 57 insertions(+), 96 deletions(-)
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
new file mode 100644
index 00000000..381654c8
--- /dev/null
+++ b/.github/workflows/documentation.yml
@@ -0,0 +1,57 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+name: Generate Documentation workflow
+
+on:
+ push:
+ branches: [ main ]
+ paths:
+ - 'wayang-docs/**'
+ pull_request:
+ branches: [ main ]
+ types: [closed]
+ paths:
+ - 'wayang-docs/**'
+permissions:
+ issues: write
+jobs:
+ build:
+ name: Create documentation
+ runs-on: ubuntu-latest
+ env:
+ ## Environment variable
+ API_KEY: $HOME/gems
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v2
+ with:
+ java-version: 8
+ distribution: 'adopt'
+ - name: Install ruby
+ run: |
+ sudo apt install -y ruby-full build-essential zlib1g-dev
+ export GEM_HOME="$HOME/gems"' >> $GITHUB_ENV
+ export PATH="$HOME/gems/bin:$PATH"' >> $GITHUB_ENV
+ - name: Install jekyll
+ run: |
+ gem install jekyll bundler
+ - uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven
+ - name: Generate the documentation
+ run: ./mvnw clean gem:exec@bundle-install gem:exec@generate-documentation gem:exec@generate-documentation-as-latest site -pl wayang-docs -Pweb-documentation
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index efb62ac0..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,96 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-language: java
-jdk:
- - openjdk8
-notification:
- email:
- on_success: never
- on_failure: never
-cache:
- directories:
- - .autoconf
- - $HOME/.m2
-
-before_install:
- - echo "${GENERATE_DOCS}"
- - if [ "${GENERATE_DOCS}" = "true" ] ; then sudo apt-get update ; fi
- - if [ "${GENERATE_DOCS}" = "true" ] ; then sudo apt-get -y install ruby-full build-essential zlib1g-dev ; fi
- - if [ "${GENERATE_DOCS}" = "true" ] ; then echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc ; fi
- - if [ "${GENERATE_DOCS}" = "true" ] ; then echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc ; fi
- - if [ "${GENERATE_DOCS}" = "true" ] ; then source ~/.bashrc ; fi
-install:
- - if [ "${GENERATE_DOCS}" = "true" ] ; then gem install jekyll bundler ; fi
-
-before_script:
- - echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' > ~/.m2/settings.xml
- - echo 'xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">' >> ~/.m2/settings.xml
- - echo ' <servers>' >> ~/.m2/settings.xml
- - echo ' <server>' >> ~/.m2/settings.xml
- - echo ' <id>github</id>' >> ~/.m2/settings.xml
- - echo " <username>${GIT_USERNAME}</username>" >> ~/.m2/settings.xml
- - echo " <password>${GIT_TOKEN}</password>" >> ~/.m2/settings.xml
- - echo ' </server>' >> ~/.m2/settings.xml
- - echo ' </servers>' >> ~/.m2/settings.xml
- - echo '</settings>' >> ~/.m2/settings.xml
- - mkdir -p travis/tmp
- - echo "#" >> travis/wayang.properties
- - echo "# Licensed to the Apache Software Foundation (ASF) under one or more" >> travis/wayang.properties
- - echo "# contributor license agreements. See the NOTICE file distributed with" >> travis/wayang.properties
- - echo "# this work for additional information regarding copyright ownership." >> travis/wayang.properties
- - echo "# The ASF licenses this file to You under the Apache License, Version 2.0" >> travis/wayang.properties
- - echo "# (the "License"); you may not use this file except in compliance with" >> travis/wayang.properties
- - echo "# the License. You may obtain a copy of the License at" >> travis/wayang.properties
- - echo "#" >> travis/wayang.properties
- - echo "# http://www.apache.org/licenses/LICENSE-2.0" >> travis/wayang.properties
- - echo "#" >> travis/wayang.properties
- - echo "# Unless required by applicable law or agreed to in writing, software" >> travis/wayang.properties
- - echo "# distributed under the License is distributed on an "AS IS" BASIS," >> travis/wayang.properties
- - echo "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." >> travis/wayang.properties
- - echo "# See the License for the specific language governing permissions and" >> travis/wayang.properties
- - echo "# limitations under the License." >> travis/wayang.properties
- - echo "#" >> travis/wayang.properties
- - echo "wayang.basic.tempdir = file://$(pwd)/travis/tmp" >> travis/wayang.properties
- - echo "spark.driver.host = localhost" >> travis/wayang.properties
- - echo "spark.master = local[1]" >> travis/wayang.properties
- - echo "wayang.giraph.job.tracker = localhost:50300" >> travis/wayang.properties
- - echo "wayang.giraph.maxWorkers = 1" >> travis/wayang.properties
- - echo "wayang.giraph.minWorkers = 1" >> travis/wayang.properties
- - echo "wayang.mapreduce.job.counters.limit = 200" >> travis/wayang.properties
- - cat travis/wayang.properties
- - 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=error
- - 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}")
-# - chmod +x ./docs/script/cibuild
-script:
- #- jdk_switcher use openjdk8
- #- mvn clean install -Pdistro,scala-11 "${mvn_opts[@]}" &> result.log
- - mvn clean install "${mvn_opts[@]}" |& tee -a result.log | grep --line-buffered --color=always "wayang"
- #- mvn clean install -Pdistro,scala-13 "${mvn_opts[@]}" &>> result.log # This is not working for now because of Spark and Flink not supporting Scala 2.13
- - cat /home/travis/build/apache/incubator-wayang/target/rat.txt || echo "file doesn't exist"
- - tail -n 2000 result.log
-
-after_success:
- # generate the documentation and create an update of the documentation if something changes there
- - if [ "${GENERATE_DOCS}" = "true" ] ; then mvn clean gem:exec@bundle-install gem:exec@generate-documentation gem:exec@generate-documentation-as-latest site -pl wayang-docs -Pweb-documentation ; fi
-
-env:
- global:
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
- - GENERATE_DOCS="false"