This is an automated email from the ASF dual-hosted git repository. bertty pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git
commit 454287937810ebd54daf38b66d7764cc4ebdc36a Author: Bertty Contreras-Rojas <[email protected]> AuthorDate: Mon Feb 22 00:56:53 2021 -0300 Change github action to travis --- .github/workflows/html_beta_publication.yml | 37 ----------------- .github/workflows/html_publication.yml | 38 ----------------- .gitignore | 63 +++++++++++++++++++++++++++-- .travis.yml | 26 ++++++++++++ Gemfile | 5 ++- Gemfile.lock | 23 +++++++++++ script/cibuild | 5 +++ 7 files changed, 118 insertions(+), 79 deletions(-) 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 @@ Network Trash Folder 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..2b16b90 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: ruby +rvm: + - 2.6.3 + +before_script: + - chmod +x ./script/cibuild # or do this locally and commit + +install: bundle install +script: ./script/cibuild + +# branch whitelist, only for GitHub Pages +branches: + only: + - develop + - main + +addons: + apt: + packages: + - libcurl4-openssl-dev + +cache: bundler # caching bundler gem packages will speed up build + +# Optional: disable email notifications about the outcome of your builds +notifications: + email: false \ No newline at end of file diff --git a/Gemfile b/Gemfile index 4285530..24101ca 100644 --- a/Gemfile +++ b/Gemfile @@ -11,4 +11,7 @@ gem 'coderay', '~> 1.1.0' group :jekyll_plugins do gem 'jekyll-asciidoc', '~> 2.1.1' -end \ No newline at end of file +end + + +gem "html-proofer" \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 56d679e..1c0b1f0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,9 +10,19 @@ GEM 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 @@ GEM 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 @@ GEM 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..4d5702d --- /dev/null +++ b/script/cibuild @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -e # halt script on error + +bundle exec jekyll build +bundle exec htmlproofer ./_site \ No newline at end of file
