-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 916 Bytes
/
.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
env:
global:
- CC_TEST_REPORTER_ID=590d735192c6c0ab0c140d100768f689dac3f31de9a014b4dfe3edd9155d3c7a
sudo: false
language: java
cache:
directories:
- "$HOME/.m2/repository"
services:
- mysql
install:
- echo "my install"
before_script:
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- echo "my script"
- cp .travis.settings.xml $HOME/.m2/settings.xml
- mvn -B -P upgrade-db,coverage -pl ping-pong -am install -Dmaven.test.redirectTestOutputToFile=true
deploy:
provider: script
script: echo "my deploy"
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT