forked from landlord/landlord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (63 loc) · 3.42 KB
/
.travis.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
sudo: required
services:
- docker
matrix:
include:
# landlordd (daemon)
- language: scala
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com/github/huntc/landlord
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
before_script:
- cd landlordd
- unset _JAVA_OPTIONS
# landlord (CLI)
- language: rust
before_script:
- cd landlord
# integration test (landlordd <--> landlord)
- language: scala
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com/github/huntc/landlord
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
install:
- curl https://sh.rustup.rs/ | sh -s -- -y
before_script:
- unset _JAVA_OPTIONS
- export PATH="$HOME/.cargo/bin:$PATH"
script:
- scripts/integration-test-cli
# Publish to DockerHub (if branch begins with v)
- language: scala
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
before_cache:
# Ensure changes to the cache aren't persisted
- rm -rf $HOME/.ivy2/cache/com/github/huntc/landlord
# Delete all ivydata files since ivy touches them on each build
- find $HOME/.ivy2/cache -name "ivydata-*.properties" | xargs rm
install:
- "! { git describe --abbrev=0 --tags | grep ^v; } || { curl https://sh.rustup.rs/ | sh -s -- -y; }"
before_script:
- unset _JAVA_OPTIONS
- export PATH="$HOME/.cargo/bin:$PATH"
script:
- "! { git describe --abbrev=0 --tags | grep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