-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.8 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
language: java
dist: bionic
# Encrypted Ryver webhook URL
env:
global:
secure: "nocwDdsM6mLY8besfGRshGQn44ZxaRgsuu00Q0D5T9JUrr3T0zxnh26PJwSxJmn02BqyYgmYUlNieb0h4cev4YOvuLaJxkTTP6TrUwHFFh6OQZp5rUVRR8Fbajje24sSKKJxbjR3nNqCb1cvpeZ4uks+rEc90LML9qO/L5XC9foYEHw5tTwp/zKThzhDJLkTs3KRpA4dIwYfXCpLpPzEbWpPNjouuBqBDHwJqPsqb4ps64hsybckEK3J7JR8FbWPWPOW4IFM0rpF6yjWZZwLbpYArX2FwjmZaR1Fdge4ECXHdS3bmiZS15G4LpKjOuKUYeV7E9dTVmQmkaGb2xr2aSnVVtHz5eDneDxP5pFYdA5X9uw25023BCONZ9YLDBK0H2TQOVBYHvMc33cnjAITgWHnnWh/vLlZ9Gb79qRkuOZiITT5Y0qs8XtctWnPhELWKvk7XHkCFeaunwWx9mnYwb6JpdlRxpsvWEVAgmiCwlgdTstK9h5fFf2fKu/1lh77EO/N7BYZMlTdb4nd9uWscfbcEr1G8TzOZCaA9ScbW4rKkMysltB3NPiKcCS+HuOX8qBxQ6SacbiEp+Wie05Cp2sDhUCWOyBx3Q9B45w6QuKbtb+H0kAZjacrsM5ycKYhnsWRTL5Ga76AGEaH6odSnA6Wx064pzJ+2/3aUPBIN9s="
install:
# chmod the wrapper to be executable
- chmod +x ./gradlew
- ./gradlew --version
script:
- ./gradlew build -s --rerun-tasks
# Enable gradle cache
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/
after_success:
- export SHORT_COMMIT=${TRAVIS_COMMIT:0:7}
- >
curl --request 'POST'
--header 'Content-Type: text/plain; charset=utf-8'
--data "✅ **SUCCESS** ✅ The latest commit pushed to **RobotLib** (commit *$SHORT_COMMIT* on branch *$TRAVIS_BRANCH*) has [**passed** CI checks]($TRAVIS_JOB_WEB_URL)!"
$WEBHOOK_URL
after_failure:
- export SHORT_COMMIT=${TRAVIS_COMMIT:0:7}
- >
curl --request 'POST'
--header 'Content-Type: text/plain; charset=utf-8'
--data "❌ **ERROR** ❌ The latest commit pushed to **RobotLib** (commit *$SHORT_COMMIT* on branch *$TRAVIS_BRANCH*) has [**failed** CI checks]($TRAVIS_JOB_WEB_URL)!"
$WEBHOOK_URL