-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path.travis.yml
81 lines (78 loc) · 3 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
71
72
73
74
75
76
77
78
79
80
81
## WorldWindServerKit (WWSK) Travis-CI build script
# Required to install the jq JSON filter used to parse GitHub API results in scripts
# sudo: required
# WWSK is a Java project
language: java
#
jdk:
# # Define the JDK(s) to build against
- oraclejdk9
#
# cache:
# # Cache the local maven repository
# directories:
# - "$HOME/.m2"
#
# before_install:
# # Remove any (cached) user-specific maven settings
# - rm ~/.m2/settings.xml
#
# # Skip the default install step (mvn install) as our dependency management is done in the build step
# install: true
#
# before_script:
# # Install the jq shell filter so we can extract data from GitHub API JSON results
# # See apt configuration: https://docs.travis-ci.com/user/ci-environment/#apt-configuration
# - sudo apt-get install -qq jq
# - jq --version
# # Ensure scripts can be executed (required if scripts are authored in Windows)
# - chmod +x ./travis/*.sh
#
# script:
# Build WWSK with Maven using the "release" profile (generates javadoc and sources)
## Maven Commands
# -B (--batch-mode) Run in non-interactive model
# -U (--update-snapshots) Forces a check for missing releases and updated snapshots on remote repos
# -P (--activate-profiles <arg>) Comma-delimited list of profiles to activate
# - mvn clean install -B -U -P release
## Run the JMeter integration tests and output results to the reports folder
# - ./travis/run_integration_tests.sh
# Deployment has been disabled in preparation for the WorldWind project suspension on April 5, 2019
# after_success:
# # Conditionally creates a draft release on GitHub in preparation for deploy
# - ./travis/create_draft_release.sh
#
# deploy:
# # Publish WWSK distributions to GitHub releases. Uses undocumented "draft" and
# # "tag_name" settings to deploy without publishing.
# # See: https://github.com/travis-ci/travis-ci/issues/6132 for more info.
# - provider: releases
# api_key: $GITHUB_API_KEY
# file_glob: true
# file: worldwind-geoserver-dist/target/*.*
# skip_cleanup: true
# overwrite: true
# draft: true
# tag_name: $TRAVIS_TAG
# on:
# tags: true
# # Upload build artifacts from the master branch to Bintray using Maven.
# # Bintray does not allow snapshots; so we restrict the deploy to the master
# # branch (OR could use tagged builds) which should not have SNAPSHOT versions.
# # The maven_settings.xml uses the $BINTRAY_USER and $BINTRAY_API_KEY
# # enviroment variables to access Bintray. We skip the unit test as
# # they were run in the build step.
# - provider: script
# script: mvn deploy -Pdeploy -DskipTests=true --batch-mode --settings ./travis/maven_settings.xml
# skip_cleanup: true
# on:
# branch: master
#
# # Upload the integration test report(s) to the GitHub pages branch (gh-pages)
# - provider: pages
# github_token: $GITHUB_API_KEY
# local_dir: worldwind-geoserver/target/reports
# skip_cleanup: true
# on:
# all_branches: true
# #branch: develop