Skip to content

Commit

Permalink
migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnjp committed Apr 26, 2021
1 parent bd73d04 commit 34fde04
Show file tree
Hide file tree
Showing 11 changed files with 246 additions and 225 deletions.
16 changes: 0 additions & 16 deletions .appveyor.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,85 @@
name: CI
on: [push, pull_request]
env:
cache-revision: r20210426a

jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
timeout-minutes: 30

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1

- if: matrix.os == 'ubuntu-latest'
name: Set up PATH on Linux
run: echo "/tmp/texlive/bin/x86_64-linux" >> $GITHUB_PATH

- if: matrix.os == 'macos-latest'
name: Set up PATH on macOS
run: echo "/tmp/texlive/bin/universal-darwin" >> $GITHUB_PATH

- if: matrix.os == 'windows-latest'
name: Set up PATH on Windows
run: echo "D:\texlive\bin\win32" >> $GITHUB_PATH
shell: bash

- if: matrix.os != 'windows-latest'
name: Cache TeX Live on Unix
uses: actions/cache@v2
id: cache-texlive-unix
with:
path: /tmp/texlive
key: ${{ runner.os }}-texlive-${{ env.cache-revision }}
restore-keys: |
${{ runner.os }}-texlive-
- if: matrix.os == 'windows-latest'
name: Cache TeX Live on Windows
uses: actions/cache@v2
id: cache-texlive-windows
with:
path: D:\texlive
key: ${{ runner.os }}-texlive-${{ env.cache-revision }}
restore-keys: |
${{ runner.os }}-texlive-
- name: Cache RubyGems
uses: actions/cache@v2
id: cache-gems
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up RubyGems
run: |
gem update --system --no-document --conservative
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- if: |
matrix.os != 'windows-latest' &&
steps.cache-texlive-unix.outputs.cache-hit != 'true'
name: Set up TeX Live on Unix
run: bundle exec rake setup_unix
- if: |
matrix.os == 'windows-latest' &&
steps.cache-texlive-windows.outputs.cache-hit != 'true'
name: Set up TeX Live on Windows
run: bundle exec rake setup_windows
- name: Run tests
run: bundle exec rake test
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -30,5 +30,4 @@ texdoc-*.zip

# local
*.vimrc
.ruby-version
output/*
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
2.7.1
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -2,8 +2,8 @@
# Public domain.

source 'https://rubygems.org'
gem 'aruba', '~> 0.14.5'
gem 'aruba', '~> 1.1.0'
gem 'rspec', '~> 3.7.0'
gem 'rake', '~> 12.3.3'
gem 'rake', '~> 13.0.3'
gem 'ronn', '~> 0.7.3'
gem 'os', '~> 1.0.0'
109 changes: 73 additions & 36 deletions Gemfile.lock
@@ -1,43 +1,74 @@
GEM
remote: https://rubygems.org/
specs:
aruba (0.14.14)
childprocess (>= 0.6.3, < 4.0.0)
contracts (~> 0.9)
cucumber (>= 1.3.19)
ffi (~> 1.9)
rspec-expectations (>= 2.99)
thor (>= 0.19, < 2.0)
backports (3.16.1)
activesupport (6.1.3.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
aruba (1.1.0)
childprocess (>= 2.0, < 5.0)
contracts (~> 0.16.0)
cucumber (>= 2.4, < 7.0)
rspec-expectations (~> 3.4)
thor (~> 1.0)
builder (3.2.4)
childprocess (3.0.0)
contracts (0.16.0)
cucumber (3.1.2)
builder (>= 2.1.2)
cucumber-core (~> 3.2.0)
cucumber-expressions (~> 6.0.1)
cucumber-wire (~> 0.0.1)
diff-lcs (~> 1.3)
gherkin (~> 5.1.0)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.2)
cucumber-core (3.2.1)
backports (>= 3.8.0)
cucumber-tag_expressions (~> 1.1.0)
gherkin (~> 5.0)
cucumber-expressions (6.0.1)
cucumber-tag_expressions (1.1.1)
cucumber-wire (0.0.1)
diff-lcs (1.3)
ffi (1.12.2)
gherkin (5.1.0)
childprocess (4.0.0)
concurrent-ruby (1.1.8)
contracts (0.16.1)
cucumber (6.0.0)
builder (~> 3.2, >= 3.2.4)
cucumber-core (~> 9.0, >= 9.0.0)
cucumber-create-meta (~> 4.0, >= 4.0.0)
cucumber-cucumber-expressions (~> 12.1, >= 12.1.1)
cucumber-gherkin (~> 18.1, >= 18.1.0)
cucumber-html-formatter (~> 13.0, >= 13.0.0)
cucumber-messages (~> 15.0, >= 15.0.0)
cucumber-wire (~> 5.0, >= 5.0.0)
diff-lcs (~> 1.4, >= 1.4.4)
mime-types (~> 3.3, >= 3.3.1)
multi_test (~> 0.1, >= 0.1.2)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-core (9.0.0)
cucumber-gherkin (~> 18.1, >= 18.1.0)
cucumber-messages (~> 15.0, >= 15.0.0)
cucumber-tag-expressions (~> 3.0, >= 3.0.1)
cucumber-create-meta (4.0.0)
cucumber-messages (~> 15.0, >= 15.0.0)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-cucumber-expressions (12.1.1)
cucumber-gherkin (18.1.1)
cucumber-messages (~> 15.0, >= 15.0.0)
cucumber-html-formatter (13.0.0)
cucumber-messages (~> 15.0, >= 15.0.0)
cucumber-messages (15.0.0)
protobuf-cucumber (~> 3.10, >= 3.10.8)
cucumber-tag-expressions (3.0.1)
cucumber-wire (5.0.0)
cucumber-core (~> 9.0, >= 9.0.0)
cucumber-cucumber-expressions (~> 12.1, >= 12.1.1)
cucumber-messages (~> 15.0, >= 15.0.0)
diff-lcs (1.4.4)
ffi (1.15.0)
hpricot (0.8.6)
multi_json (1.14.1)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
middleware (0.1.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2021.0225)
minitest (5.14.4)
multi_test (0.1.2)
mustache (1.1.1)
os (1.0.1)
rake (12.3.3)
rdiscount (2.2.0.1)
protobuf-cucumber (3.10.8)
activesupport (>= 3.2)
middleware
thor
thread_safe
rake (13.0.3)
rdiscount (2.2.0.2)
ronn (0.7.3)
hpricot (>= 0.8.2)
mustache (>= 0.7.0)
Expand All @@ -55,17 +86,23 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
thor (1.0.1)
sys-uname (1.2.2)
ffi (~> 1.1)
thor (1.1.0)
thread_safe (0.3.6)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.4.2)

PLATFORMS
ruby

DEPENDENCIES
aruba (~> 0.14.5)
aruba (~> 1.1.0)
os (~> 1.0.0)
rake (~> 12.3.3)
rake (~> 13.0.3)
ronn (~> 0.7.3)
rspec (~> 3.7.0)

BUNDLED WITH
1.17.1
2.1.4
8 changes: 3 additions & 5 deletions README.md
@@ -1,9 +1,7 @@
# Texdoc 3.3 (2021-03-17)
# Texdoc ― Find and view documentation in TeX Live

[![Build Status](https://travis-ci.org/TeX-Live/texdoc.svg?branch=master)](https://travis-ci.org/TeX-Live/texdoc)
[![Build status](https://ci.appveyor.com/api/projects/status/uq28ms7eba7ns6d3/branch/master?svg=true)](https://ci.appveyor.com/project/wtsnjp/texdoc/branch/master)

Texdoc is a command line program to find and view documentation in TeX Live.
[![CI](https://github.com/TeX-Live/texdoc/actions/workflows/ci.yml/badge.svg)](https://github.com/TeX-Live/texdoc/actions/workflows/ci.yml)
[![CTAN](https://img.shields.io/ctan/v/texdoc?color=FC02FF&label=CTAN&style=flat)](https://www.ctan.org/pkg/texdoc)

## General Information

Expand Down

0 comments on commit 34fde04

Please sign in to comment.