This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
98 lines (77 loc) · 1.87 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
defaults: &defaults
working_directory: ~/dhall-eta
docker:
- image: typelead/eta:latest
version: 2.0
jobs:
build:
<<: *defaults
steps:
- checkout
- restore_cache:
key: dhall-eta-cache-v3-
- run: etlas update
- run: etlas build
- save_cache:
key: dhall-eta-cache-v3-{{ checksum "etlas.dhall" }}
paths:
- "~/.etlas/config"
- "~/.etlas/packages"
- "~/.etlas/tools"
- "~/.coursier"
- persist_to_workspace:
root: ~/
paths:
- dhall-eta
- .etlas
- .coursier
- .eta
test:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run:
name: Building tests
command: etlas build tasty
- run:
name: Getting dhall-lang tests
command: git clone --branch v$DHALL_STANDARD_VERSION --depth=1 https://github.com/jneira/dhall-lang.git ../dhall-lang
- run:
name: Running tests
command: etlas run tasty -- --hide-successes --num-threads 1
build-gradle:
<<: *defaults
steps:
- checkout
- restore_cache:
key: dhall-eta-cache-v3-
- restore_cache:
key: dhall-eta-gradle-cache-v2-
- run: ./gradlew init
- run: ./gradlew build
- save_cache:
key: dhall-eta-gradle-cache-v2-{{ checksum "build.gradle" }}
paths:
- "~/.gradle"
- run: ./gradlew run
workflows:
version: 2
full_cycle:
jobs:
- build:
filters:
branches:
only: master
- test:
requires:
- build
filters:
branches:
only: master
gradle_cycle:
jobs:
- build-gradle:
filters:
branches:
only: master