Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old CI systems #80

Merged
merged 4 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,32 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
name: Install *nix dependencies
run: script/bootstrap

- if: matrix.os == 'windows-latest'
name: Install Windows dependencies
run: choco install winflexbison
run: |
choco install winflexbison -y --force

- if: matrix.os == 'windows-latest'
name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.3.1

- if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
name: Run tests
name: Run *nix tests
run: script/cibuild

- if: matrix.os == 'windows-latest'
name: Run Windows tests
run: |
mkdir build
cmake . -Bbuild -G "Visual Studio 17 2022"
msbuild /p:Configuration=Release build/mtex2MML.sln
cd build
ctest -V
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

35 changes: 0 additions & 35 deletions appveyor.yml

This file was deleted.

53 changes: 5 additions & 48 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -1,58 +1,15 @@
#!/bin/sh
#!/bin/bash

set -e

mkdir -p build
cd build
cd build || exit 1
cmake ..
make
ctest -V

echo 'inline'
echo '\sin y' | ./mtex2MML --inline | grep "display='inline'" || exit 1
echo ''

echo 'display'
echo '\sin y' | ./mtex2MML --display | grep "display='block'" || exit 1
echo ''

echo 'inline print-mtex'
echo '\sin y' | ./mtex2MML --inline --print-mtex | grep '$\\sin y\$'|| exit 1
echo ''

echo 'display print-mtex'
echo '\sin y' | ./mtex2MML --display --print-mtex | grep '$$\\sin y\$\$' || exit 1
echo ''

echo 'dollar'
echo '$\sin y$' | ./mtex2MML | grep "display='inline'" || exit 1

echo 'double dollar'
echo '$$\sin y$$' | ./mtex2MML | grep "display='block'" || exit 1

echo 'parens'
echo '\(\sin y\)' | ./mtex2MML | grep "display='inline'" || exit 1

echo 'brackets'
echo '\[\sin y\]' | ./mtex2MML | grep "display='block'" || exit 1

echo 'dollar use-dollar'
echo '$\sin y$' | ./mtex2MML --use-dollar | grep "display='inline'" || exit 1

echo 'double dollar use-double'
echo '$$\sin y$$' | ./mtex2MML --use-double | grep "display='block'" || exit 1

echo 'parens use-parens'
echo '\(\sin y\)' | ./mtex2MML --use-parens | grep "display='inline'" || exit 1

echo 'brackets use-brackets'
echo '\[\sin y\]' | ./mtex2MML --use-brackets | grep "display='block'" || exit 1

echo 'env use-env'
echo '\\begin{align}3x + 9y &= -12\\end{align}' | ./mtex2MML --use-env | grep "display='block'" || exit 1

echo 'DONE with command check'

if [ -n "$CI" ]; then
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
if [[ "$(uname -s)" == "Linux" ]] ; then
make memcheck
fi
fi
48 changes: 48 additions & 0 deletions script/test-quick
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash

set -e

echo 'inline'
echo '\sin y' | ./mtex2MML --inline | grep "display='inline'" || exit 1
echo ''

echo 'display'
echo '\sin y' | ./mtex2MML --display | grep "display='block'" || exit 1
echo ''

echo 'inline print-mtex'
echo '\sin y' | ./mtex2MML --inline --print-mtex | grep '$\\sin y\$'|| exit 1
echo ''

echo 'display print-mtex'
echo '\sin y' | ./mtex2MML --display --print-mtex | grep '$$\\sin y\$\$' || exit 1
echo ''

echo 'dollar'
echo '$\sin y$' | ./mtex2MML | grep "display='inline'" || exit 1

echo 'double dollar'
echo '$$\sin y$$' | ./mtex2MML | grep "display='block'" || exit 1

echo 'parens'
echo '\(\sin y\)' | ./mtex2MML | grep "display='inline'" || exit 1

echo 'brackets'
echo '\[\sin y\]' | ./mtex2MML | grep "display='block'" || exit 1

echo 'dollar use-dollar'
echo '$\sin y$' | ./mtex2MML --use-dollar | grep "display='inline'" || exit 1

echo 'double dollar use-double'
echo '$$\sin y$$' | ./mtex2MML --use-double | grep "display='block'" || exit 1

echo 'parens use-parens'
echo '\(\sin y\)' | ./mtex2MML --use-parens | grep "display='inline'" || exit 1

echo 'brackets use-brackets'
echo '\[\sin y\]' | ./mtex2MML --use-brackets | grep "display='block'" || exit 1

echo 'env use-env'
echo '\\begin{align}3x + 9y &= -12\\end{align}' | ./mtex2MML --use-env | grep "display='block'" || exit 1

echo 'DONE with command check'
Loading