Parcourir la source

Add config for pushing snapshots from circle.

Circle is configured with a user/pass in secure env vars
(not exposed to builds from forks).

In theory this allows it to push master builds to artifactory's
snapshot repository.
pull/137/head
Chris Smith il y a 7 ans
Parent
révision
a3832645e6
2 fichiers modifiés avec 12 ajouts et 1 suppressions
  1. 5
    1
      build.gradle
  2. 7
    0
      circle.yml

+ 5
- 1
build.gradle Voir le fichier

79
         repositories {
79
         repositories {
80
             maven {
80
             maven {
81
                 name 'snapshots'
81
                 name 'snapshots'
82
-                url 'http://artifactory.dmdirc.com/artifactory/repo'
82
+                url 'http://artifactory.dmdirc.com/artifactory/snapshots'
83
+                credentials {
84
+                    username System.getenv('ARTIFACTORY_USER')
85
+                    password System.getenv('ARTIFACTORY_PASSWORD')
86
+                }
83
             }
87
             }
84
         }
88
         }
85
     }
89
     }

+ 7
- 0
circle.yml Voir le fichier

18
 test:
18
 test:
19
   override:
19
   override:
20
     - ./gradlew test jacocoTestReport coveralls
20
     - ./gradlew test jacocoTestReport coveralls
21
+
22
+deployment:
23
+  snapshots:
24
+    branch: master
25
+    owner: DMDirc
26
+    commands:
27
+      - ./gradlew publishSnapshot

Chargement…
Annuler
Enregistrer