-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #569 from UniFormal/master
Release 22
- Loading branch information
Showing
654 changed files
with
28,268 additions
and
26,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,113 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- devel | ||
pull_request: | ||
branches: | ||
- master | ||
- devel | ||
|
||
# Also trigger on page_build, as well as release created events | ||
page_build: | ||
release: | ||
types: # This configuration does not affect the page_build event above | ||
- created | ||
name: Integration Tests | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
env: | ||
SCALA_VERSION: '2.13.4' | ||
JAVA_VERSION: '[email protected]' | ||
|
||
jobs: | ||
ci: | ||
# Skip CI if the commit message of the head commit of a push | ||
# contains "skip ci" or "ci skip" | ||
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')" | ||
|
||
name: Continuous Integration | ||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install OpenJDK 14 and sbt | ||
uses: olafurpg/setup-scala@v10 | ||
- name: Install Java (${{ env.JAVA_VERSION }}) and Scala (${{ env.SCALA_VERSION }}) | ||
uses: olafurpg/setup-scala@v11 | ||
with: | ||
java-version: [email protected] | ||
java-version: ${{ env.JAVA_VERSION }} | ||
|
||
- name: Install Dependencies | ||
- name: Download MMT dependencies using 'sbt update' | ||
run: | | ||
cd src | ||
sbt ++2.13.4 update | ||
sbt ++${{ env.SCALA_VERSION }} update | ||
- name: Build 'mmt.jar' | ||
- name: Build 'mmt.jar' using 'sbt deploy' | ||
run: | | ||
cd src | ||
sbt ++2.13.4 deploy | ||
sbt ++${{ env.SCALA_VERSION }} deploy | ||
- name: Store 'mmt.jar' artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mmt.jar | ||
path: ./deploy/mmt.jar | ||
|
||
- name: Unit Tests | ||
- name: Run Unit Tests | ||
run: | | ||
cd src | ||
sbt ++2.13.4 test | ||
sbt ++${{ env.SCALA_VERSION }} test | ||
- name: Use 'devel' version for MMT Archives | ||
run: | | ||
echo "MMT_ARCHIVE_VERSION=devel" >> $GITHUB_ENV | ||
if: "!startsWith(github.ref, 'refs/heads/master')" | ||
|
||
- name: Use 'master' version for MMT Archives | ||
run: | | ||
echo "MMT_ARCHIVE_VERSION=master" >> $GITHUB_ENV | ||
if: startsWith(github.ref, 'refs/heads/master') | ||
|
||
- name: Run MMT Setup and store root directory | ||
id: setup | ||
run: | | ||
java -jar ./deploy/mmt.jar :setup --auto --auto --no-content --no-jedit | ||
echo "MMT_ARCHIVE_ROOT=../MMT-content" >> $GITHUB_ENV | ||
- name: Integration Tests | ||
shell: bash | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MMT/urtheories' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MMT/examples' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MMT/LATIN2' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MMT/LFX' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'Test/General' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MitM/Foundation' | ||
run: | | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl | ||
- name: Test '${{ env.MMT_ARCHIVE }}' | ||
if: always() && steps.setup.outcome == 'success' | ||
env: | ||
MMT_ARCHIVE: 'MitM/Core' | ||
run: | | ||
export TEST_USE_BRANCH=${GITHUB_REF#refs/heads/} | ||
java -cp deploy/mmt.jar info.kwarc.mmt.test.TestRunner | ||
java -jar ./deploy/mmt.jar lmh install ${{ env.MMT_ARCHIVE }}@${{ env.MMT_ARCHIVE_VERSION }} | ||
java -jar ./deploy/mmt.jar :file ${{ env.MMT_ARCHIVE_ROOT }}/${{ env.MMT_ARCHIVE }}/build.msl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# This is like run except that it automatically loads an msl file passed as an argument. | ||
# You may want to associate the msl file ending with this script. | ||
dir="$(dirname $0)" | ||
java -Xmx8192m -cp "$dir/lib/*:$dir/mmt.jar" info.kwarc.mmt.api.frontend.Run :file $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@echo off | ||
rem This is like run.bat except that it automatically loads an msl file passed as an argument. | ||
rem You may want to associate the msl file ending with this script. | ||
|
||
java -Xmx1024m -cp %~dp0/lib/*;%~dp0/main/*;%~dp0/lfcatalog/lfcatalog.jar info.kwarc.mmt.api.frontend.Run --shell file %1 | ||
java -Xmx1024m -cp %~dp0/mmt.jar info.kwarc.mmt.api.frontend.Run :file %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...urations/Shell_with_MathHub_test_msl__works_if_the_path_to_your_mathhub_folder_works_.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.