Skip to content

Added config for running larky tests. #31

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
version: 2.0

setup-maven-distributions: &setup-maven-distributions
run:
name: Setup distrubution servers for larky
command: |
mkdir -p ~/.m2
cat <<EOF > ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>github</id>
<username>$GITHUB_USERNAME</username>
<password>$GITHUB_API_TOKEN</password>
</server>
</servers>
</settings>
EOF
echo $GITHUB_USERNAME
jobs:
test-larky:
docker:
- image: maven:3.8.6-openjdk-11
steps:
- checkout
- <<: *setup-maven-distributions
- run:
name: Clone starlarky
command: |
git clone git@github.com:verygoodsecurity/starlarky.git ./tmp/starlarky
- run:
name: Remove default quick_tests
command: |
rm -f ./tmp/starlarky/larky/src/test/resources/quick_tests/**.star
- run:
name: Copy code example tests to quick_tests folder
command: |
cp $(find ./integrations/larky/ | grep .star) ./tmp/starlarky/larky/src/test/resources/quick_tests/
- run:
name: Test Larky
command: |
cd ./tmp/starlarky
mvn -Dtest='LarkyQuickTests*' test -pl larky

workflows:
version: 2

test-larky:
jobs:
- test-larky
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/node_modules
**/results.txt
content-by-language/node/package*.json
tmp/*
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: test-larky

./tmp/starlarky:
git clone git@github.com:verygoodsecurity/starlarky.git ./tmp/starlarky

test-larky: ./tmp/starlarky
rm -f tmp/starlarky/larky/src/test/resources/quick_tests/**.star
cp $$(find ./integrations/larky/ | grep .star) ./tmp/starlarky/larky/src/test/resources/quick_tests/
cd ./tmp/starlarky; mvnw -Dtest='LarkyQuickTests*' test -pl larky