-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.yml
84 lines (69 loc) · 1.92 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build-java:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk
- image: singularitynet/java-sdk-integration-test-env:3.0.0
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
# run tests!
- run:
name: Build and run tests
command: |
mvn -DskipITs=false install
- save_cache:
key: maven-artifacts-{{ .Revision }}
paths:
- ~/.m2
name: Save maven artifacts
- run:
name: Upload coverage
command: bash <(curl -s https://codecov.io/bash)
- run:
name: Build CLI examples
command: |
cd ./example/cli
mvn install
- run:
name: Build and run tutorial app
command: |
cd ./example/tutorial
mvn package exec:java
build-android:
docker:
# specify the version you desire here
- image: circleci/android:api-28
working_directory: ~/repo
environment:
ETHEREUM_ENDPOINT: https://mainnet.infura.io/v3/e7732e1f679e461b9bb4da5653ac3fc2
GRADLE_OPTS: -Xmx3200m -Dorg.gradle.daemon=false
steps:
- checkout
- restore_cache:
key: maven-artifacts-{{ .Revision }}
name: Restoring maven artifacts from previous job
- run:
name: Build Android examples
command: |
cd ./example/android/SNetDemo
cat <<EOF >./ethereum.properties
ethereum.json.rpc.endpoint=$ETHEREUM_ENDPOINT
EOF
./gradlew build
workflows:
version: 2
build:
jobs:
- build-java
- build-android:
requires:
- build-java