-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (63 loc) · 1.79 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
65
66
67
68
69
70
language: java
jdk:
- openjdk8
before_install:
- sudo apt-get -y install jq
- java -Xmx32m -version
before_script:
- ls -lah
addons:
apt:
packages:
- openjdk-8-jdk
env:
global:
- JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
- PATH="$JAVA_HOME/bin:$PATH"
- MOBILE_PLATFORM_NAME="iOS"
- MOBILE_PLATFORM_VERSION="13.0"
- MOBILE_DEVICE="iPhone XS Simulator"
- WITH_DRIVER_PARAMS="-Dwebdriver.remote.url=$REMOTE_URL"
- WITH_PLATFORM_PARAMS="-Dmobile.cloud.type=Saucelabs -Dmobile.platform.name=$MOBILE_PLATFORM_NAME -Dmobile.platform.version=$MOBILE_PLATFORM_VERSION"
- WITH_TESTS_PARAMS="-Dreport.portal.user=$USER_LOGIN -Dreport.portal.password=$USER_PASSWORD -Drp.uuid=$REPORTPORTAL_UUID"
stages:
- prepare
- compile
- test
- reports
jobs:
include:
- stage: prepare
name: Welcome to jdi light mobile demo
script:
- echo ------------------- WELCOME TO JDI LIGHT MOBILE DEMO ----------------------
- mvn --version
- stage: compile
name: Compile jdi light mobile demo code
script:
- mvn install -DskipTests
- stage: test
name: Run tests
script:
- mvn -ntp install -DskipTests
- mvn verify -Pdebug $WITH_TESTS_PARAMS $WITH_DRIVER_PARAMS $WITH_PLATFORM_PARAMS "-Dmobile.device.name=$MOBILE_DEVICE"
- stage: reports
name: Deploy allure reports to netlify
script:
- npm install -g allure-commandline
- npm install -g netlify-cli
- allure --version
- source reports.sh
- deployAllureResults
after_failure:
- echo "Build was failed"
after_success:
- echo "Build was successful"
after_script:
- source reports.sh
- grubAllureResults
- du -d 1 -h ./
- ls -la
# extra time during long builds
install:
- travis_wait