Merge pull request #2 from berttty/develop

Change github action to travis
diff --git a/.github/workflows/html_beta_publication.yml b/.github/workflows/html_beta_publication.yml
deleted file mode 100644
index 76fc099..0000000
--- a/.github/workflows/html_beta_publication.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: Compilation of the Webpage
-
-on:
-  push:
-    branches:
-      - develop
-
-jobs:
-  jekyll:
-    runs-on: ubuntu-16.04
-    steps:
-      - uses: actions/checkout@v2
-
-      - name: update_url
-        run : |
-          URL="https://wayang.staged.apache.org"
-          BASE_URL="/"
-          echo "url: \"${URL}\"" > _config.yml.tmp
-          echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
-          cat _config.yml | grep -v "url:" >> _config.yml.tmp
-          mv _config.yml.tmp _config.yml
-
-      # Use GitHub Actions' cache to shorten build times and decrease load on servers
-      - name: cache
-        uses: actions/cache@v2
-        with:
-          path: vendor/bundle
-          key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
-          restore-keys: |
-            ${{ runner.os }}-gems-
-
-      # Specify the target branch
-      - name: publish
-        uses: helaili/jekyll-action@v2
-        with:
-          token: ${{ secrets.TOKEN_SECURITY }}
-          target_branch: 'asf-staging'
\ No newline at end of file
diff --git a/.github/workflows/html_publication.yml b/.github/workflows/html_publication.yml
deleted file mode 100644
index 67d9ef4..0000000
--- a/.github/workflows/html_publication.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Compilation of the Webpage
-
-on:
-  pull_request:
-    types: [closed]
-    branches:
-      - main
-
-jobs:
-  jekyll:
-    runs-on: ubuntu-16.04
-    steps:
-      - uses: actions/checkout@v2
-
-      - name: update_url
-        run : |
-          URL="https://wayang.apache.org"
-          BASE_URL="/"
-          echo "url: \"${URL}\"" > _config.yml.tmp
-          echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
-          cat _config.yml | grep -v "url:" >> _config.yml.tmp
-          mv _config.yml.tmp _config.yml
-
-      # Use GitHub Actions' cache to shorten build times and decrease load on servers
-      - name: cache
-        uses: actions/cache@v2
-        with:
-          path: vendor/bundle
-          key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
-          restore-keys: |
-            ${{ runner.os }}-gems-
-
-      # Specify the target branch
-      - name: publish
-        uses: helaili/jekyll-action@v2
-        with:
-          token: ${{ secrets.TOKEN_SECURITY }}
-          target_branch: 'asf-site'
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 27e5eb8..a65c37a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
 
-# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,macos,jekyll
-# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,macos,jekyll
+# Created by https://www.toptal.com/developers/gitignore/api/macos,jekyll,intellij+all,ruby
+# Edit at https://www.toptal.com/developers/gitignore?templates=macos,jekyll,intellij+all,ruby
 
 ### Intellij+all ###
 # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
@@ -126,4 +126,61 @@
 Temporary Items
 .apdisk
 
-# End of https://www.toptal.com/developers/gitignore/api/intellij+all,macos,jekyll
+### Ruby ###
+*.gem
+*.rbc
+/.config
+/coverage/
+/InstalledFiles
+/pkg/
+/spec/reports/
+/spec/examples.txt
+/test/tmp/
+/test/version_tmp/
+/tmp/
+
+# Used by dotenv library to load environment variables.
+# .env
+
+# Ignore Byebug command history file.
+.byebug_history
+
+## Specific to RubyMotion:
+.dat*
+.repl_history
+build/
+*.bridgesupport
+build-iPhoneOS/
+build-iPhoneSimulator/
+
+## Specific to RubyMotion (use of CocoaPods):
+#
+# We recommend against adding the Pods directory to your .gitignore. However
+# you should judge for yourself, the pros and cons are mentioned at:
+# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
+# vendor/Pods/
+
+## Documentation cache and generated files:
+/.yardoc/
+/_yardoc/
+/doc/
+/rdoc/
+
+## Environment normalization:
+/.bundle/
+/vendor/bundle
+/lib/bundler/man/
+
+# for a library or gem, you might want to ignore these files since the code is
+# intended to run in multiple environments; otherwise, check them in:
+# Gemfile.lock
+# .ruby-version
+# .ruby-gemset
+
+# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
+.rvmrc
+
+# Used by RuboCop. Remote config files pulled in from inherit_from directive.
+# .rubocop-https?--*
+
+# End of https://www.toptal.com/developers/gitignore/api/macos,jekyll,intellij+all,ruby
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9569a42
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,21 @@
+language: ruby
+rvm:
+- 2.6.3
+before_script:
+- chmod +x ./script/cibuild
+install: bundle install
+script: "./script/cibuild"
+branches:
+  only:
+  - develop
+  - main
+addons:
+  apt:
+    packages:
+    - libcurl4-openssl-dev
+cache: bundler
+notifications:
+  email: false
+env:
+  global:
+    secure: GqzCosWAev40ym9KPKGwGljdrDkVBcjh/+p39XrhaR2wTnstC7ygcVLFj4TSH8Wtt1zrawJSFNrqid62OQirsnYwx9DE2FB1hDApkv3Z9uxLj4Fg4npGQe6EnyVPev9bvxv2wLQgi8sxbabW2eOpYBuSXCV/Lsyikv8aKyCBKtTKiYYUgfLiB+CfLcIUm7LoHznBcOfv9J8VCvGsWCuNmgszRiVdbGy0CFcw4qAmw9p7iApiszlAvSuF1tvAaXxITK3nFfZZOCx6GlFnY8/lSn3k6wKqGsfD60Bmgk3eBwtM5iiltK1O7I1vOLXGNEQkfFsemDWI5GkVAcUSr1BnMFDYS5Cvw1BNbc4xHAmtovTWUzokKep0EuhRiuFFVnEHXqPTApEs+VZvhAwGTiafAymKGo6INGtHG5yBsvLZMADk0VpTRG3TDXFHQMTsFjCZ3IYLcKYoOmLYBOcS4Rk4HQLvQdVwivTtzuovMQqvrkIAQI78qfru6iOI6npihyTxa4JtLejSmE+/+LTfb5oj99d6dUFm0WJxdrqv/db5ziLZR3uXcjEb3CRrWfRMdCrPfJ3R0uJcWSI4bX4RPAz9t+5+QGS9JlecJR4VqqW6R6/tTXiTDTVIixKyvQ5Why25PF+P5vE8iKsJhqokupK/bt3KIG2W1GzI31pXF0JQgYQ=
diff --git a/Gemfile b/Gemfile
index 4285530..5face85 100644
--- a/Gemfile
+++ b/Gemfile
@@ -11,4 +11,6 @@
 
 group :jekyll_plugins do
   gem 'jekyll-asciidoc', '~> 2.1.1'
-end
\ No newline at end of file
+end
+
+gem "html-proofer"
diff --git a/Gemfile.lock b/Gemfile.lock
index 56d679e..1c0b1f0 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -10,9 +10,19 @@
     em-websocket (0.5.2)
       eventmachine (>= 0.12.9)
       http_parser.rb (~> 0.6.0)
+    ethon (0.12.0)
+      ffi (>= 1.3.0)
     eventmachine (1.2.7)
     ffi (1.14.2)
     forwardable-extended (2.6.0)
+    html-proofer (3.18.6)
+      addressable (~> 2.3)
+      mercenary (~> 0.3)
+      nokogumbo (~> 2.0)
+      parallel (~> 1.3)
+      rainbow (~> 3.0)
+      typhoeus (~> 1.3)
+      yell (~> 2.0)
     http_parser.rb (0.6.0)
     i18n (1.8.9)
       concurrent-ruby (~> 1.0)
@@ -47,9 +57,18 @@
       rb-fsevent (~> 0.10, >= 0.10.3)
       rb-inotify (~> 0.9, >= 0.9.10)
     mercenary (0.4.0)
+    nokogiri (1.11.1-arm64-darwin)
+      racc (~> 1.4)
+    nokogiri (1.11.1-x86_64-darwin)
+      racc (~> 1.4)
+    nokogumbo (2.0.4)
+      nokogiri (~> 1.8, >= 1.8.4)
+    parallel (1.20.1)
     pathutil (0.16.2)
       forwardable-extended (~> 2.6)
     public_suffix (4.0.6)
+    racc (1.5.2)
+    rainbow (3.0.0)
     rb-fsevent (0.10.4)
     rb-inotify (0.10.1)
       ffi (~> 1.0)
@@ -60,13 +79,17 @@
       ffi (~> 1.9)
     terminal-table (2.0.0)
       unicode-display_width (~> 1.1, >= 1.1.1)
+    typhoeus (1.4.0)
+      ethon (>= 0.9.0)
     unicode-display_width (1.7.0)
+    yell (2.2.2)
 
 PLATFORMS
   universal-darwin-20
 
 DEPENDENCIES
   coderay (~> 1.1.0)
+  html-proofer
   jekyll (~> 4.2)
   jekyll-asciidoc (~> 2.1.1)
 
diff --git a/script/cibuild b/script/cibuild
new file mode 100644
index 0000000..a9ae4f4
--- /dev/null
+++ b/script/cibuild
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+set -e # halt script on error
+
+URL="https://wayang.apache.org"
+BASE_URL="/"
+BRANCH_PAGE=asf-site
+
+echo "url: \"${URL}\"" > _config.yml.tmp
+echo "baseurl: \"${BASE_URL}\"" >> _config.yml.tmp
+cat _config.yml | grep -v "url:" >> _config.yml.tmp
+mv _config.yml.tmp _config.yml
+
+bundle exec jekyll build
+bundle exec htmlproofer ./_site
+mkdir -p ../tmp
+mv ./_site/* ../tmp
+
+git checkout --orphan ${BRANCH_PAGE}
+rm -rf ./*
+rm .asf.yaml
+rm .gitignore
+rm .travis*
+
+mv ../tmp/* ./
+
+git add -A
+git status
+git commit -m "Lastest site built on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to github"
+git remote set-url origin https://${USER}:${TOKEN}@github.com/${TRAVIS_REPO_SLUG}
+git push origin --delete ${BRANCH_PAGE}
+git push origin ${BRANCH_PAGE}:${BRANCH_PAGE}