forked from exercism/ceylon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: java
jdk:
# Ceylon 1.3.3 is not ready for java 10 or 11:
# ceylon compile: invalid source release: 10
# ceylon compile: invalid source release: 11
# Ceylon 1.3.3 is not ready for java 9:
# ceylon format: Could not load module 'ceylon.formatter/1.3.3' because: com.
# redhat.ceylon.cmr.ceylon.loader.ModuleNotFoundException: Could not find module:
# javax.xml/7
# Try later version of Java when using a later version of Ceylon.
# Arbitrarily selected openjdk8 over oraclejdk8, they both work fine.
- openjdk8
install:
- bin/fetch-configlet
- curl -s https://get.sdkman.io | bash
- source $HOME/.sdkman/bin/sdkman-init.sh
- sdk install ceylon
script:
- bin/configlet lint .
- |
# Check for invalid UUIDs.
# can be removed once `configlet lint` gains this ability.
# Check issue https://github.com/exercism/configlet/issues/99
bad_uuid=$(jq --raw-output '.exercises | map(.uuid) | .[]' config.json | grep -vE '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$')
if [ -n "$bad_uuid" ]; then
echo "invalid UUIDs found! please correct these to be valid UUIDs:"
echo "$bad_uuid"
exit 1
fi
- bin/compile-all-stubs
- bin/test-all-exercises
- |
if ! ceylon format exercises; then
echo "'ceylon format' couldn't run!"
exit 1
fi
if ! git diff --exit-code; then
echo "'ceylon format' found differences! Please match 'ceylon format' so this repo can have consistent style!"
exit 1
fi