You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/05/03 17:46:17 UTC
[cordova-test-platform] 01/01: CI config (via
https://github.com/apache/cordova-cli)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-ci
in repository https://gitbox.apache.org/repos/asf/cordova-test-platform.git
commit 90adc24532c7ebac964b37060d7c0500badeaf62
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Fri May 3 19:46:04 2019 +0200
CI config (via https://github.com/apache/cordova-cli)
---
.travis.yml | 20 ++++++++++++++++++++
appveyor.yml | 25 +++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..9d2673f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: node_js
+
+# Performance optimization
+git:
+ depth: 10
+cache:
+ directories:
+ - $HOME/.npm
+
+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
\ No newline at end of file
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..ad6fb42
--- /dev/null
+++ b/appveyor.yml
@@ -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
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org