forked from zalando/zalenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (55 loc) · 2.13 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
62
63
64
language: java
jdk:
- oraclejdk8
sudo: required
services:
- docker
jobs:
include:
- stage: Integration and Unit Tests
env: step=sauceLabs
if: type = pull_request
script:
- docker pull elgalu/selenium
- travis_retry ./run_integration_tests.sh sauceLabs
- env: step=browserStack_with_user1006
if: type = pull_request
script:
- docker pull elgalu/selenium
- travis_retry ./run_integration_tests.sh browserStack
- env: step=dockerCompose
if: type = pull_request
script:
- docker pull elgalu/selenium
- curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- travis_retry ./run_integration_tests.sh dockerCompose
- env: step=unitTests
script:
- sudo apt-get install jq
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)
- mvn clean package -Pcoverage-report
# Report coverage results to Codecov
- bash <(curl -s https://codecov.io/bash)
# Report coverage results to Codacy
- java -cp ~/codacy-coverage-reporter-assembly-latest.jar com.codacy.CodacyCoverageReporter -l Java -r ./target/site/jacoco/jacoco.xml
- env: step=minikube
if: type = pull_request
script:
- docker pull elgalu/selenium
- travis_retry ./kubernetes/minikube-ci-initialize.sh
- mvn clean package -Pbuild-docker-image -DskipTests=true
- cd target && docker build -t dosel/zalenium:minikube . && cd ..
- ./kubernetes/start-zalenium-in-minikube.sh
- ./run_integration_tests.sh minikube
- stage: Push Image (only with a tag)
if: type != pull_request AND tag IS present
script:
- ./gen-scm-source.sh
- ./push_image.sh
branches:
only:
- master
# Regular expression for release branches. E.g. -> 2.53.1a, 3.0.1a
- /^([0-9]|[0-9][0-9])[.]([0-9]|[0-9][0-9])[.]([0-9]|[0-9][0-9])[a-z]$/