trackler 2.1.0.29 → 2.1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/exercises/twelve-days/description.md +1 -1
- data/lib/trackler/version.rb +1 -1
- data/tracks/delphi/SETUP.md +1 -1
- data/tracks/ecmascript/Makefile +4 -3
- data/tracks/ecmascript/config.json +0 -65
- data/tracks/ecmascript/exercises/accumulate/package.json +6 -0
- data/tracks/ecmascript/exercises/acronym/package.json +6 -0
- data/tracks/ecmascript/exercises/all-your-base/package.json +6 -0
- data/tracks/ecmascript/exercises/allergies/package.json +6 -0
- data/tracks/ecmascript/exercises/anagram/package.json +6 -0
- data/tracks/ecmascript/exercises/atbash-cipher/package.json +6 -0
- data/tracks/ecmascript/exercises/beer-song/package.json +6 -0
- data/tracks/ecmascript/exercises/binary-search-tree/package.json +6 -0
- data/tracks/ecmascript/exercises/binary-search/package.json +6 -0
- data/tracks/ecmascript/exercises/binary/package.json +6 -0
- data/tracks/ecmascript/exercises/bob/package.json +6 -0
- data/tracks/ecmascript/exercises/bracket-push/package.json +6 -0
- data/tracks/ecmascript/exercises/circular-buffer/circular-buffer.spec.js +11 -13
- data/tracks/ecmascript/exercises/circular-buffer/example.js +15 -14
- data/tracks/ecmascript/exercises/circular-buffer/package.json +6 -0
- data/tracks/ecmascript/exercises/clock/package.json +6 -0
- data/tracks/ecmascript/exercises/connect/package.json +6 -0
- data/tracks/ecmascript/exercises/crypto-square/package.json +6 -0
- data/tracks/ecmascript/exercises/custom-set/package.json +6 -0
- data/tracks/ecmascript/exercises/diamond/package.json +6 -0
- data/tracks/ecmascript/exercises/difference-of-squares/package.json +6 -0
- data/tracks/ecmascript/exercises/etl/package.json +6 -0
- data/tracks/ecmascript/exercises/food-chain/package.json +6 -0
- data/tracks/ecmascript/exercises/gigasecond/package.json +6 -0
- data/tracks/ecmascript/exercises/grade-school/package.json +6 -0
- data/tracks/ecmascript/exercises/grains/package.json +6 -0
- data/tracks/ecmascript/exercises/hamming/package.json +6 -0
- data/tracks/ecmascript/exercises/hello-world/package.json +6 -0
- data/tracks/ecmascript/exercises/hexadecimal/package.json +6 -0
- data/tracks/ecmascript/exercises/isogram/package.json +6 -0
- data/tracks/ecmascript/exercises/kindergarten-garden/package.json +6 -0
- data/tracks/ecmascript/exercises/largest-series-product/package.json +6 -0
- data/tracks/ecmascript/exercises/leap/package.json +6 -0
- data/tracks/ecmascript/exercises/linked-list/package.json +6 -0
- data/tracks/ecmascript/exercises/luhn/package.json +6 -0
- data/tracks/ecmascript/exercises/matrix/package.json +6 -0
- data/tracks/ecmascript/exercises/meetup/package.json +6 -0
- data/tracks/ecmascript/exercises/nth-prime/package.json +6 -0
- data/tracks/ecmascript/exercises/ocr-numbers/package.json +6 -0
- data/tracks/ecmascript/exercises/octal/package.json +6 -0
- data/tracks/ecmascript/exercises/package.json +11 -0
- data/tracks/ecmascript/exercises/palindrome-products/package.json +6 -0
- data/tracks/ecmascript/exercises/pangram/package.json +6 -0
- data/tracks/ecmascript/exercises/pascals-triangle/package.json +6 -0
- data/tracks/ecmascript/exercises/perfect-numbers/package.json +6 -0
- data/tracks/ecmascript/exercises/phone-number/package.json +6 -0
- data/tracks/ecmascript/exercises/pig-latin/package.json +6 -0
- data/tracks/ecmascript/exercises/prime-factors/package.json +6 -0
- data/tracks/ecmascript/exercises/pythagorean-triplet/package.json +6 -0
- data/tracks/ecmascript/exercises/queen-attack/package.json +6 -0
- data/tracks/ecmascript/exercises/raindrops/package.json +6 -0
- data/tracks/ecmascript/exercises/rna-transcription/package.json +6 -0
- data/tracks/ecmascript/exercises/robot-name/package.json +6 -0
- data/tracks/ecmascript/exercises/robot-simulator/package.json +6 -0
- data/tracks/ecmascript/exercises/roman-numerals/package.json +6 -0
- data/tracks/ecmascript/exercises/saddle-points/package.json +6 -0
- data/tracks/ecmascript/exercises/say/package.json +6 -0
- data/tracks/ecmascript/exercises/scrabble-score/package.json +6 -0
- data/tracks/ecmascript/exercises/secret-handshake/package.json +6 -0
- data/tracks/ecmascript/exercises/series/package.json +6 -0
- data/tracks/ecmascript/exercises/sieve/package.json +6 -0
- data/tracks/ecmascript/exercises/simple-cipher/package.json +6 -0
- data/tracks/ecmascript/exercises/space-age/package.json +6 -0
- data/tracks/ecmascript/exercises/strain/package.json +6 -0
- data/tracks/ecmascript/exercises/sum-of-multiples/package.json +6 -0
- data/tracks/ecmascript/exercises/triangle/package.json +6 -0
- data/tracks/ecmascript/exercises/trinary/package.json +6 -0
- data/tracks/ecmascript/exercises/two-bucket/package.json +6 -0
- data/tracks/ecmascript/exercises/word-count/package.json +6 -0
- data/tracks/ecmascript/exercises/wordy/package.json +6 -0
- data/tracks/ecmascript/package.json +6 -0
- data/tracks/ecmascript/yarn.lock +9 -2
- data/tracks/go/README.md +3 -4
- data/tracks/haskell/README.md +1 -1
- data/tracks/java/.gitignore +0 -1
- data/tracks/java/.travis.yml +15 -1
- data/tracks/java/bin/journey-test.sh +3 -4
- data/tracks/java/bin/unit-tests.sh +2 -2
- data/tracks/java/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/tracks/java/gradle/wrapper/gradle-wrapper.properties +6 -0
- data/tracks/java/gradlew +172 -0
- data/tracks/java/gradlew.bat +84 -0
- data/tracks/javascript/config.json +0 -74
- data/tracks/javascript/exercises/isogram/isogram.spec.js +6 -0
- data/tracks/php/config.json +5 -0
- data/tracks/php/exercises/prime-factors/example.php +13 -0
- data/tracks/php/exercises/prime-factors/prime-factors_test.php +46 -0
- data/tracks/ruby/exercises/isogram/.meta/.version +1 -1
- data/tracks/ruby/exercises/isogram/.meta/generator/isogram_case.rb +15 -1
- data/tracks/ruby/exercises/isogram/isogram_test.rb +10 -10
- data/tracks/ruby/exercises/sum-of-multiples/.meta/.version +1 -0
- data/tracks/ruby/exercises/sum-of-multiples/.meta/generator/sum_of_multiples_case.rb +11 -0
- data/tracks/ruby/exercises/sum-of-multiples/.meta/solutions/sum_of_multiples.rb +4 -0
- data/tracks/ruby/exercises/sum-of-multiples/sum_of_multiples_test.rb +51 -12
- data/tracks/rust/exercises/forth/example.rs +2 -6
- data/tracks/rust/exercises/forth/tests/forth.rs +18 -18
- metadata +10 -2
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
"devDependencies": {
|
12
12
|
"babel-jest": "^20.0.1",
|
13
13
|
"babel-preset-env": "^1.4.0",
|
14
|
+
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
14
15
|
"eslint": "^3.19.0",
|
15
16
|
"jest": "^20.0.1"
|
16
17
|
},
|
@@ -22,6 +23,11 @@
|
|
22
23
|
"babel": {
|
23
24
|
"presets": [
|
24
25
|
"env"
|
26
|
+
],
|
27
|
+
"plugins": [
|
28
|
+
["babel-plugin-transform-builtin-extend", {
|
29
|
+
"globals": ["Error"]
|
30
|
+
}]
|
25
31
|
]
|
26
32
|
},
|
27
33
|
"scripts": {
|
data/tracks/ecmascript/yarn.lock
CHANGED
@@ -354,6 +354,13 @@ babel-plugin-transform-async-to-generator@^6.22.0:
|
|
354
354
|
babel-plugin-syntax-async-functions "^6.8.0"
|
355
355
|
babel-runtime "^6.22.0"
|
356
356
|
|
357
|
+
babel-plugin-transform-builtin-extend@^1.1.2:
|
358
|
+
version "1.1.2"
|
359
|
+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-builtin-extend/-/babel-plugin-transform-builtin-extend-1.1.2.tgz#5e96fecf58b8fa1ed74efcad88475b2af3c9116e"
|
360
|
+
dependencies:
|
361
|
+
babel-runtime "^6.2.0"
|
362
|
+
babel-template "^6.3.0"
|
363
|
+
|
357
364
|
babel-plugin-transform-es2015-arrow-functions@^6.22.0:
|
358
365
|
version "6.22.0"
|
359
366
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
|
@@ -595,14 +602,14 @@ babel-register@^6.24.1:
|
|
595
602
|
mkdirp "^0.5.1"
|
596
603
|
source-map-support "^0.4.2"
|
597
604
|
|
598
|
-
babel-runtime@^6.18.0, babel-runtime@^6.22.0:
|
605
|
+
babel-runtime@^6.18.0, babel-runtime@^6.2.0, babel-runtime@^6.22.0:
|
599
606
|
version "6.23.0"
|
600
607
|
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b"
|
601
608
|
dependencies:
|
602
609
|
core-js "^2.4.0"
|
603
610
|
regenerator-runtime "^0.10.0"
|
604
611
|
|
605
|
-
babel-template@^6.16.0, babel-template@^6.24.1:
|
612
|
+
babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.3.0:
|
606
613
|
version "6.24.1"
|
607
614
|
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.24.1.tgz#04ae514f1f93b3a2537f2a0f60a5a45fb8308333"
|
608
615
|
dependencies:
|
data/tracks/go/README.md
CHANGED
@@ -31,10 +31,9 @@ find low hanging typo problems. [#570](https://github.com/exercism/xgo/pull/570)
|
|
31
31
|
|
32
32
|
## Contributing Guide
|
33
33
|
|
34
|
-
Please be familiar with the [contributing guide](https://github.com/exercism/
|
35
|
-
in the
|
36
|
-
|
37
|
-
In particular, please read the [Pull Request Guidelines](https://github.com/exercism/x-common/blob/master/CONTRIBUTING.md#pull-request-guidelines) before opening a pull request.
|
34
|
+
Please be familiar with the [contributing guide](https://github.com/exercism/docs/tree/master/contributing-to-language-tracks)
|
35
|
+
in the docs repository. This describes some great ways to get involved.
|
36
|
+
In particular, please read the [Pull Request Guidelines](https://github.com/exercism/docs/blob/master/contributing-to-language-tracks/pull-request-guidelines.md) before opening a pull request.
|
38
37
|
|
39
38
|
## xgo style
|
40
39
|
|
data/tracks/haskell/README.md
CHANGED
@@ -33,7 +33,7 @@ In any case, don't be afraid or shy! We promise to be friendly and as helpful as
|
|
33
33
|
possible.
|
34
34
|
|
35
35
|
### How to contribute
|
36
|
-
As a first step we recommend you read the [contributing
|
36
|
+
As a first step we recommend you read the [contributing documentation](https://github.com/exercism/docs/tree/master/contributing-to-language-tracks).
|
37
37
|
|
38
38
|
#### Reporting or fixing bugs
|
39
39
|
Typical examples for a bug: A typo, a missing test case, an unclear or ambiguous
|
data/tracks/java/.gitignore
CHANGED
data/tracks/java/.travis.yml
CHANGED
@@ -13,7 +13,7 @@ notifications:
|
|
13
13
|
|
14
14
|
# http://docs.travis-ci.com/user/migrating-from-legacy
|
15
15
|
sudo: false
|
16
|
-
|
16
|
+
|
17
17
|
addons:
|
18
18
|
apt:
|
19
19
|
packages:
|
@@ -24,9 +24,23 @@ before_install:
|
|
24
24
|
- rvm use 2.2.5
|
25
25
|
- bin/build-jq.sh # we want jq 1.5 features; not avail through pkg repo.
|
26
26
|
|
27
|
+
# https://docs.travis-ci.com/user/customizing-the-build#Skipping-the-Installation-Step
|
28
|
+
install: true # if we don't skip install, ./gradlew assemble is invoked, but this task is not available.
|
29
|
+
|
27
30
|
before_script:
|
28
31
|
- export PATH=$TRAVIS_BUILD_DIR/bin:$PATH # ensure our tools are prefered over included ones.
|
29
32
|
|
30
33
|
script:
|
31
34
|
- bin/unit-tests.sh
|
32
35
|
- bin/journey-test.sh
|
36
|
+
|
37
|
+
# configure caching (https://docs.travis-ci.com/user/languages/java/#Caching)
|
38
|
+
before_cache:
|
39
|
+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
40
|
+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
41
|
+
# format from https://docs.travis-ci.com/user/caching/#Enabling-multiple-caching-features
|
42
|
+
cache:
|
43
|
+
bundler: true
|
44
|
+
directories:
|
45
|
+
- $HOME/.gradle/caches/
|
46
|
+
- $HOME/.gradle/wrapper/
|
@@ -59,7 +59,7 @@ clean() {
|
|
59
59
|
rm -rf "${build_path}"
|
60
60
|
fi
|
61
61
|
cd exercises
|
62
|
-
|
62
|
+
"$EXECPATH"/gradlew clean
|
63
63
|
cd ..
|
64
64
|
echo "<<< clean()"
|
65
65
|
}
|
@@ -227,12 +227,12 @@ solve_all_exercises() {
|
|
227
227
|
|
228
228
|
pushd ${exercism_exercises_dir}/java/${exercise}
|
229
229
|
# Check that tests compile before we strip @Ignore annotations
|
230
|
-
|
230
|
+
"$EXECPATH"/gradlew compileTestJava
|
231
231
|
# Ensure we run all the tests (as delivered, all but the first is @Ignore'd)
|
232
232
|
for testfile in `find . -name "*Test.java"`; do
|
233
233
|
sed 's/@Ignore\(.*\)//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
|
234
234
|
done
|
235
|
-
|
235
|
+
"$EXECPATH"/gradlew test
|
236
236
|
popd
|
237
237
|
|
238
238
|
current_exercise_number=$((current_exercise_number + 1))
|
@@ -256,7 +256,6 @@ main() {
|
|
256
256
|
local xapi_port=9292
|
257
257
|
|
258
258
|
# fail fast if required binaries are not installed.
|
259
|
-
assert_installed "gradle"
|
260
259
|
assert_installed "jq"
|
261
260
|
|
262
261
|
clean "${build_dir}"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
set -e
|
3
|
-
|
3
|
+
./gradlew --version
|
4
4
|
|
5
5
|
echo ""
|
6
6
|
echo ">>> Running configlet..."
|
@@ -10,6 +10,6 @@ bin/configlet .
|
|
10
10
|
pushd exercises
|
11
11
|
echo ""
|
12
12
|
echo ">>> Running tests..."
|
13
|
-
TERM=dumb
|
13
|
+
TERM=dumb ../gradlew check compileStarterSourceJava --continue
|
14
14
|
popd
|
15
15
|
|