-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
61 lines (52 loc) · 1.71 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
language: java
install: true
sudo: required
services: docker
env:
- DOCKER_COMPOSE_VERSION=1.23.2
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo apt-get install jq
- LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)"
- curl -Ls -o codacy-coverage-reporter-assembly.jar "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-assembly.jar"
jdk:
- openjdk8
before_script:
# - ls -al
# - sudo chown -R 1000 test-dcore-node
# - ls -al
# - cd ./test-dcore-node
# - ls -al
# - cd ./datadir
# - ls -al
# - id travis
# - docker-compose up -d
# - docker-compose ps
# - docker-compose exec DCore ls -al
# - docker-compose exec DCore bash -c "cd ./.decent"
# - docker-compose exec DCore ls -al
# - docker-compose exec DCore id dcore
script:
- ./gradlew build test
- ./gradlew jacocoTestReport
- java -jar codacy-coverage-reporter-assembly.jar report -l Java -r library/build/reports/jacoco/test/jacocoTestReport.xml
deploy:
- provider: pages
skip_cleanup: true
local_dir: library/build/javadoc/
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
keep_history: true
on:
tags: true
before_deploy:
- touch library/build/javadoc/.nojekyll