forked from nervosnetwork/ckb-system-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (51 loc) · 1.47 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
################
# CI Workflow:
# feature development, trigger by `git push`:
# build -> test -> code_audit
#
# Stages:
# - test: run `make test`
# - code_quality: run `make code-quality`
# - deploy: upload test report hosting with Github Pages
#
# ENV variables:
# - CKB_DOCKER_IMAGE_TAG_NAME, set this ENV variable to specified test target version, get available tag from https://hub.docker.com/r/nervos/ckb/tags
#
################
stages:
- test
# TODO: add code quality audit
# - code_quality
# os config
sudo: false
# language config
language: java
jdk:
- oraclejdk9
cache:
directories:
- $HOME/.m2 # for Maven
- libs/org/nervos/ckb/ckb-sdk-java/ # downloaded ckb-sdk-java jar files
# install dependencies
install: make setup
env:
- CKB_START_LOCAL_TESTNET=1 CKB_DOCKER_IMAGE_TAG_NAME=v0.14.0
jobs:
include:
- stage: test
script:
- make test
- scripts/travis-upload-test-report-to-gh-pages.sh
# TODO: add code quality audit
# - stage: code_quality
# if: branch != master # run code_audit for feature branches only
# script: make code-quality
# following config is not working
# Skipping a deployment with the pages provider because the current build is a pull request.
# https://github.com/travis-ci/travis-ci/issues/7338
# deploy:
# provider: pages
# skip_cleanup: true
# github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, as a secure variable
# keep_history: true
# local_dir: target/surefire-reports/