forked from monimesl/pulserl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
55 lines (44 loc) · 1.05 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
#authors: [Alpha Umaru Shaw, Stanislav Sabudaye]
sudo: required
language: erlang
notifications:
email: false
otp_release:
- 21.0
- 21.3
- 22.0
- 22.3
env:
global:
- DOCKER_COMPOSE_VERSION: 1.25.4
services:
- docker
before_install:
# Upgrade Docker Compose.
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Upgrade Docker.
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
install:
- wget https://s3.amazonaws.com/rebar3/rebar3
- chmod +x rebar3
- export PATH=$PWD:$PATH
before_script:
- cd $TRAVIS_BUILD_DIR
- docker-compose up -d
- cp config/tls-enable-sys.config config/sys.config
- sleep 15
- docker ps
script:
- rebar3 clean
- rebar3 get-deps
- rebar3 ct
- rebar3 compile
after_script:
- docker-compose down
cache:
directories:
- .pulserl-cache