Skip to content

Commit 5577d33

Browse files
committed
Upgraded to gradle 1.8-all and started with playing with graphs to represent the model
1 parent bb570f7 commit 5577d33

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

Diff for: gradle/wrapper/gradle-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Aug 14 00:59:45 CEST 2013
1+
#Fri Nov 29 11:51:37 CET 2013
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
6+
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-all.zip

Diff for: settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include 'api'
22
include 'configmodel'
3+
include 'graphs'
34
include 'groovydsl'
45
include 'runner'
56
include 'listener'

Diff for: subprojects/graphs/graphs.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apply plugin: 'groovy'
2+
3+
description = 'pipeline configuration model --the INTERNAL model implementation for the :api'
4+
5+
dependencies {
6+
compile libraries.groovy
7+
compile project(':api')
8+
9+
testCompile libraries.spock
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package org.pipelinelabs.pipeline.graphs
2+
3+
import spock.lang.Specification
4+
5+
class GraphSpec extends Specification {
6+
/**
7+
* - two stages executed in order of adding
8+
* - three stages where 1,2 are executed at the same time, 3 is executed after 1
9+
* - four stages where 1,2 are executed at the same time, 3 is executed after 1, 4 is executed after 2
10+
* - four stages where 2 executes after 1, 3 and 4 are executed after 2
11+
*/
12+
13+
def "Can execute stages after eachother"() {
14+
given: "multiple stages are added as dependend on eachother"
15+
16+
when: "the pipeline is executed"
17+
18+
then: "each next stage is executed when the previous one finishes successfully"
19+
20+
}
21+
22+
def "Can execute stages in parallel"() {
23+
24+
}
25+
26+
def "Multiple stages can join together to one next stage"() {
27+
given: "multiple stages join together to one next stage"
28+
29+
when: "the next stage is reached"
30+
31+
then: "the stage is not executed until all joining stages are ready"
32+
33+
}
34+
35+
def "Can execute stages in parallel and join"() {
36+
37+
}
38+
}

0 commit comments

Comments
 (0)