Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js

# Performance optimization
git:
depth: 10
cache:
directories:
- $HOME/.npm
Copy link
Contributor

@raphinesse raphinesse May 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my experience, this does not really improve performance, since the cached directories have to be restored to/saved from the CI container which tends to take even longer than just downloading them in the first place.

Just my 2 cents. I'm not opposed to having this.


node_js:
- "6"
- "8"
- "10"
- "12"

before_script:
# Ensure that bin script actually runs on used Node.js version
# to detect and avoid bugs such as apache/cordova-cli#339
# (<https://github.com/apache/cordova-cli/issues/339>)
- ./bin/cordova --version
25 changes: 25 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# http://www.appveyor.com/docs/appveyor-yml

# Performance optimization
shallow_clone: true
cache:
- '%APPDATA%\npm-cache'

environment:
matrix:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"

install:
- ps: Install-Product node $env:nodejs_version
- npm install

build: off

test_script:
# Workaround for https://github.com/appveyor/ci/issues/2420
- set "PATH=%PATH%;C:\Program Files\Git\mingw64\libexec\git-core"
- node --version
- npm --version
- npm test