Skip to content

Commit e6249c4

Browse files
committed
Updated circleci.
1 parent 4c1c865 commit e6249c4

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.circleci/config.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,46 @@
11
version: 2.0
22

3+
setup-maven-distributions: &setup-maven-distributions
4+
run:
5+
name: Setup distrubution servers for larky
6+
command: |
7+
mkdir -p ~/.m2
8+
cat <<EOF > ~/.m2/settings.xml
9+
<settings>
10+
<servers>
11+
<server>
12+
<id>github</id>
13+
<username>$GITHUB_USERNAME</username>
14+
<password>$GITHUB_API_TOKEN</password>
15+
</server>
16+
</servers>
17+
</settings>
18+
EOF
19+
echo $GITHUB_USERNAME
320
jobs:
421
test-larky:
522
docker:
6-
- image: cimg/openjdk:17.0.1
23+
- image: maven:3.8.6-openjdk-11
724
steps:
825
- checkout
9-
- run: make test-larky
26+
- <<: *setup-maven-distributions
27+
- run:
28+
name: Clone starlarky
29+
command: |
30+
git clone git@github.com:verygoodsecurity/starlarky.git ./tmp/starlarky
31+
- run:
32+
name: Remove default quick_tests
33+
command: |
34+
rm -f ./tmp/starlarky/larky/src/test/resources/quick_tests/**.star
35+
- run:
36+
name: Copy code example tests to quick_tests folder
37+
command: |
38+
cp $(find ./integrations/larky/ | grep .star) ./tmp/starlarky/larky/src/test/resources/quick_tests/
39+
- run:
40+
name: Test Larky
41+
command: |
42+
cd ./tmp/starlarky
43+
mvn -Dtest='LarkyQuickTests*' test -pl larky
1044
1145
workflows:
1246
version: 2

0 commit comments

Comments
 (0)