-
Notifications
You must be signed in to change notification settings - Fork 384
/
.travis.yml
63 lines (58 loc) · 2.08 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
# Directs the Travis CI build service for Web WorldWind
# For more information see https://docs.travis-ci.com/user/customizing-the-build/
# Set up to run the JavaScript build script per the Travis CI documentation
language: node_js
# Configure the build to use the latest Node.js 10.x release
node_js:
- "10"
# Build the project. Travis CI automatically runs npm install before the build
script:
- npm run build
# Deployment has been disabled in preparation for the WorldWind project suspension on April 5, 2019
# deploy:
# # Publish develop branch distributions to the Artifactory apps repository
# - provider: script
# script: node ./travis/publishFolderToArtifactory $ARTIFACTORY_API_KEY ./build/dist /artifactory/apps/web
# skip_cleanup: true
# on:
# branch: develop
# # Publish API documentation to GitHub Pages
# - provider: pages
# github_token: $GITHUB_API_KEY
# local_dir: build/dist/api-doc
# skip_cleanup: true
# on:
# branch: develop
# # Publish release artifacts to the npm repository
# - provider: npm
# email: $NPM_EMAIL
# api_key: $NPM_API_KEY
# skip_cleanup: true
# on:
# tags: true
# # Publish release distributions to the Artifactory repository
# - provider: script
# script: node ./travis/publishFolderToArtifactory $ARTIFACTORY_API_KEY ./build/dist /artifactory/web/${TRAVIS_TAG:1}
# skip_cleanup: true
# on:
# tags: true
# # Create CHANGELOG.md in the current directory
# - provider: script
# script: ./travis/changelog.sh >> CHANGELOG.md
# skip_cleanup: true
# on:
# tags: true
# # Create a GitHub release and publish CHANGELOG.md and WebWorldWind.zip to the release assets
# - provider: releases
# api_key: $GITHUB_API_KEY
# file_glob: true
# file:
# - CHANGELOG.md
# - build/WebWorldWind-Distribution-*.zip
# skip_cleanup: true
# on:
# tags: true
# Node.js build cache configuration. See the Travis CI documentation: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#Caching-with-npm
cache:
directories:
- "node_modules"