forked from radicalbit/NSDb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (90 loc) · 3.44 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: scala
scala:
- 2.12.12
jdk:
- openjdk8
services:
- docker
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.custom-cache
stages:
- name: styling
- name: test
- name: coverage
- name: Image Creation Test
- name: push
if: (((branch = master OR branch =~ ^branch-) AND type = push) OR (tag IS present)) AND NOT fork
jobs:
include:
- stage: "styling"
script: sbt clean fixCheck scalafmtCheck test:scalafmtCheck multi-jvm:scalafmtCheck
- stage: "test"
name: "Unit tests"
script: sbt -jvm-opts .jvmopts-travis coverage test
workspaces:
create:
name: testCoverage
paths:
- nsdb-common/target/scala-2.12/scoverage-data/*
- nsdb-rpc/target/scala-2.12/scoverage-data/*
- nsdb-scala-api/target/scala-2.12/scoverage-data/*
- nsdb-java-api/target/scala-2.12/scoverage-data/*
- nsdb-core/target/scala-2.12/scoverage-data/*
- nsdb-sql/target/scala-2.12/scoverage-data/*
- nsdb-cluster/target/scala-2.12/scoverage-data/*
- nsdb-http/target/scala-2.12/scoverage-data/*
- nsdb-security/target/scala-2.12/scoverage-data/*
- nsdb-cli/target/scala-2.12/scoverage-data/*
- script: sbt -jvm-opts .jvmopts-travis coverage multi-jvm:test
name: "MultiJvm Test"
workspaces:
create:
name: multiJvmCoverage
paths:
- nsdb-common/target/scala-2.12/scoverage-data/*
- nsdb-rpc/target/scala-2.12/scoverage-data/*
- nsdb-scala-api/target/scala-2.12/scoverage-data/*
- nsdb-java-api/target/scala-2.12/scoverage-data/*
- nsdb-core/target/scala-2.12/scoverage-data/*
- nsdb-sql/target/scala-2.12/scoverage-data/*
- nsdb-cluster/target/scala-2.12/scoverage-data/*
- nsdb-http/target/scala-2.12/scoverage-data/*
- nsdb-security/target/scala-2.12/scoverage-data/*
- nsdb-cli/target/scala-2.12/scoverage-data/*
- script: sbt -jvm-opts .jvmopts-travis coverage it:test
name: "Integration Tests"
workspaces:
create:
name: itCoverage
paths:
- nsdb-common/target/scala-2.12/scoverage-data/*
- nsdb-rpc/target/scala-2.12/scoverage-data/*
- nsdb-scala-api/target/scala-2.12/scoverage-data/*
- nsdb-java-api/target/scala-2.12/scoverage-data/*
- nsdb-core/target/scala-2.12/scoverage-data/*
- nsdb-sql/target/scala-2.12/scoverage-data/*
- nsdb-cluster/target/scala-2.12/scoverage-data/*
- nsdb-http/target/scala-2.12/scoverage-data/*
- nsdb-security/target/scala-2.12/scoverage-data/*
- nsdb-cli/target/scala-2.12/scoverage-data/*
- stage: "coverage"
script:
- sbt compile coverageReport coverageAggregate
name: "Coverage"
workspaces:
use:
- testCoverage
- multiJvmCoverage
- itCoverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: "Image Creation Test"
script: sbt docker:publishLocal
- stage: "push"
script: $TRAVIS_BUILD_DIR/travis-credentials.sh && sbt publish && docker login -u $DOCKER_USER -p $DOCKER_PASSWORD && sbt docker:publish