-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
44 lines (36 loc) · 1.2 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
41
42
43
44
language: java
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules
- sysconfcpus
env:
- ELM_VERSION=latest-0.19.1
before_install:
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
if [ ! -d sysconfcpus/bin ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi
install:
- node -v
- npm --version
- npm install -g elm@$ELM_VERSION
- mv $(npm config get prefix)/bin/elm $(npm config get prefix)/bin/elm-original
# Make sure that the wrapper script exits with the return-code of "elm-original"
- printf "#\041/bin/bash\necho \"Running elm with sysconfcpus -n 2\"\n$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-original \"\$@\"\nexit \$?\n" > $(npm config get prefix)/bin/elm
- chmod +x $(npm config get prefix)/bin/elm
jdk:
- openjdk8
- openjdk11
script:
- ./gradlew assemble
- ./gradlew check -i