forked from selenide/selenide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (39 loc) · 1.35 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
conditions: v1
git:
depth: 99999
language: java
addons:
apt:
update: true
chrome: stable
firefox: latest
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/
- $HOME/.sonar/cache/
before_install:
- sudo apt-get install -y libappindicator1 fonts-liberation
- export CHROME_BIN=/usr/bin/google-chrome
install: true
jobs:
include:
- script: ./gradlew check --no-daemon --console=plain
name: "Check"
- if: type != pull_request
script: ./gradlew jacocoTestReport sonarqube --no-daemon --console=plain -Dsonar.organization=${SONAR_ORG} -Dsonar.host.url=${SONAR_HOST} -Dsonar.login=${SONAR_LOGIN} -Dsonar.branch.name=${TRAVIS_BRANCH}
name: "Check + Sonar"
- script: ./gradlew grid --no-daemon --console=plain -i
name: "Grid"
- script: ./gradlew firefox_headless --no-daemon --console=plain -i
name: "Firefox"
- script: ./gradlew chrome_headless --no-daemon --console=plain -i
name: "Chrome"
after_failure: "./.upload_reports.sh"
notifications:
slack:
rooms:
secure: "a+W3yrcab0GVRhmIUXsdV1KpNxX6Qe7LnX6vq4Ou4mCSSaBln0mL0y4Gs1GSPdiq5PWhYrcIgAsESQiCDbi5JoW//GyEovZvY+WDgnhrskoOLFgWqxhT1yInDkLRfkQZAdL/5uWOBDSr1d+2/1qqeciWMebQQZoEezeKoKwPtdQ="