-
Notifications
You must be signed in to change notification settings - Fork 75
/
config.yml
100 lines (79 loc) · 2.36 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: 2
jobs:
build:
environment:
- SBT: "sbt -v -mem 8192 J-Xss10M"
docker:
- image: rtkaczyk/mantis-circleci:v6
steps:
- checkout
- restore_cache:
key: mantis-{{ checksum "build.sbt" }}-{{ checksum "project/build.properties" }}-{{ checksum "project/plugins.sbt" }}-v1
- run:
name: submodule
command: |
git submodule init
git submodule update
- run:
name: scalastyle
command: $SBT scalastyle test:scalastyle
- run:
name: unit tests
command: $SBT coverage test
- run:
name: EVM tests
command: $SBT coverage evm:test
- run:
name: integration tests
command: $SBT coverageOff it:test
- run:
name: coverage report
command: $SBT coverageReport coverageAggregate
- store_artifacts:
path: target/scala-2.12/coverage-report
destination: scala-2.12/coverage-report
- store_artifacts:
path: target/scala-2.12/scoverage-report
destination: scala-2.12/scoverage-report
- run:
name: ETS
command: ./test-ets.sh
no_output_timeout: 1h
- run:
name: additional compilation & dist
# this step builds parts of the codebase which are not tested in CI
# so as to prevent compilation regression
command: $SBT benchmark:compile snappy:compile dist
- save_cache:
key: mantis-{{ checksum "build.sbt" }}-{{ checksum "project/build.properties" }}-{{ checksum "project/plugins.sbt" }}-v1
paths:
- ~/.sbt
- ~/.ivy2/cache
- ~/.m2
full_ETS:
docker:
- image: rtkaczyk/mantis-circleci:v6
steps:
- checkout
- restore_cache:
key: mantis-{{ checksum "build.sbt" }}-{{ checksum "project/build.properties" }}-{{ checksum "project/plugins.sbt" }}-v1
- run:
name: FULL ETS
command: RUN_FULL_ETS=yes ./test-ets.sh
no_output_timeout: 1h
workflows:
version: 2
on_push:
jobs:
- build
scheduled_ETS:
triggers:
- schedule:
cron: "0 4 * * 3,6"
filters:
branches:
only:
- phase/release1_1
- phase/iele_testnet
jobs:
- full_ETS