Jelajahi Sumber

Automatically deploy to NPM (#5527)

* Added deployments to NPM on tagged releases

Previously this was being done manually after each release, which resulted in a few releases not showing up on NPM for  a significant amount of time. Now the builds should be automatically pushed, which should hopefully improve a lot of the issues we were seeing.

* Drop IRC notifications

We no longer use this IRC channel.

* Clean up .travis.yml

* Remove grunt ci

This is no longer needed now that we don't do anything special for CI builds. This also allows us to minify during CI builds, which will be useful for the tagged builds which depend on these minified files being up to date (so they can get released as well).
Kevin Brown 6 tahun lalu
induk
melakukan
0a612f92e1
2 mengubah file dengan 11 tambahan dan 13 penghapusan
  1. 11 11
      .travis.yml
  2. 0 2
      Gruntfile.js

+ 11 - 11
.travis.yml

@@ -1,9 +1,7 @@
 language: node_js
 
-sudo: false
-
 node_js:
-  - 0.10
+  - "0.10"
 
 env:
   global:
@@ -11,12 +9,14 @@ env:
     - secure: BU5BPRx6H4O3WJ509YPixjUxg+hDF3z2BVJX6NiGmKWweqvCEYFfiiHLwDEgp/ynRcF9vGVi1V4Ly1jq7f8NIajbDZ5q443XchZFYFg78K/EwD5mK6LYt16zb7+Jn0KbzwHeGRGzc9AvcEYlW6i634cSCm4n3BnqtF5PpogSzdw=
 
 script:
-  - grunt ci
+  - grunt
 
-notifications:
-  email: false
-  irc:
-    channels:
-      - "chat.freenode.net#select2"
-    on_success: change
-    on_failure: always
+deploy:
+  - provider: npm
+    email:
+      secure: T/xRKPHPI1GwomNYb3nvMntS805vdzewDKNwB+lDS6WOfXQx9td5CIbkhpfAW3zVjdbsXFVSOzufesY+RtF4gq8yvW5FhV7py6gwnEyW8LybgYssUd08W/fMoiCjORRXxwqnoHEh956z3Z9De4Q9ow47m8iniAsKRR1I1DHaKs0=
+    api_key:
+      secure: BCdGeRjm8i9V+gbaVNIYk7+zLyeLOQDm6eCH+NYVX137gkNBoYqL/U7GGfHoWxEvrVgN8tcCM6RrS5qU+Wu/Wy/esz1PeSoFxKEIJx+p6BCzACFl1tJWqdm/JlmnuCiZdHs6TTtfKQwaJAK4H0Kfp5qJZS9QA/RxBpkfBQZW9VY=
+    on:
+      tags: true
+    skip_cleanup: true

+ 0 - 2
Gruntfile.js

@@ -255,6 +255,4 @@ module.exports = function (grunt) {
   ]);
   grunt.registerTask('minify', ['uglify', 'sass:dist']);
   grunt.registerTask('test', ['connect:tests', 'qunit', 'jshint']);
-
-  grunt.registerTask('ci', ['compile', 'test']);
 };