-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (76 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: false
matrix:
include:
- name: "Hemin Engine"
language: scala
env:
- ISOLATED=true
scala: 2.12.6
jdk:
- oraclejdk8
- openjdk8
services:
- docker
before_install:
- docker-compose -f docker-compose.yml up -d
before_script:
- cd engine
script:
- sbt ++$TRAVIS_SCALA_VERSION clean test
- name: "Hemin API"
language: scala
env:
- ISOLATED=true
scala: 2.12.6
jdk:
- oraclejdk8
- openjdk8
cache:
directories:
- $HOME/.m2
services:
- docker
before_install:
- docker-compose -f docker-compose.yml up -d
install:
- cd engine
- sbt clean compile publishM2
- cd ..
before_script:
- cd api
script:
- sbt ++$TRAVIS_SCALA_VERSION clean test
- name: "Hemin WebApp"
language: elm
env:
- ISOLATED=true
elm: elm0.19.0
node_js: '10' # latest 10.x
cache:
directories:
- tests/elm-stuff/build-artifacts
- sysconfcpus
before_install:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- | # 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:
- npm install -g [email protected] elm-test elm-format create-elm-app
- mv $(npm config get prefix)/bin/elm $(npm config get prefix)/bin/elm-old
- printf '%s\n\n' '#!/bin/bash' 'echo "Running elm with sysconfcpus -n 1"' '$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 1 elm-old "$@"' > $(npm config get prefix)/bin/elm
- chmod +x $(npm config get prefix)/bin/elm
- cd tests
- npm install
- cd ..
before_script:
- cd webapp
script:
- elm-format --validate src/
- elm-app test