forked from typedb/typedb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (38 loc) · 1.05 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
sudo: required
dist: trusty
language: java
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
- grakn-dashboard/node_modules
- grakn-engine/npm
addons:
sonarcloud:
organization: "grakn-labs"
branches:
- master
- stable
env:
# Split tests into grakn-test and everything else
- TESTS=**/*Test* MODULE=grakn-test/test-integration
- TESTS=**/*IT* MODULE=grakn-test/test-integration
- TESTS=**/*Test* MODULE=!grakn-test/test-integration
- TESTS=**/*IT* MODULE=!grakn-test/test-integration
notifications:
slack: grakn:RbxoPzX267spGT4cgmoGLMpT
email: false
install: mvn install -T 2.5C -DskipTests=true -Dmaven.javadoc.skip=true -B -V
jobs:
include:
- stage: test
script:
- mvn test --projects "$MODULE" -Dtest=$TESTS -DfailIfNoTests=false -Dsurefire.rerunFailingTestsCount=1 jacoco:report
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
if: type IN (push, cron, api)
script:
- mvn sonar:sonar
before_install:
- npm config set registry http://registry.npmjs.org/