aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 0004695727f8fa9c77038739b7caabf3a3093bd6 (plain) (blame)
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
language: erlang
matrix:
  include:
    - os: linux
      sudo: required
      otp_release: 17.5
    - os: linux
      sudo: required
      otp_release: 18.3
    - os: linux
      sudo: required
      otp_release: 19.3
    - os: linux
      sudo: required
      otp_release: 20.0
    - os: linux
      sudo: required
      otp_release: 21.0
    - os: osx
      sudo: required
      language: generic
before_script:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  ## should eventually use a tap that has previous erlang versions here
  ## as this only uses the latest erlang available via brew
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install erlang; fi
  - wget https://s3.amazonaws.com/rebar3/rebar3
  - chmod +x rebar3
script: "./rebar3 update && ./rebar3 ct"
after_failure:
  ## Useful for troubleshooting to view test logs
  - find _build/test/logs/ct_run*/lib*logs/run*/log_private/*-output*/*/log -type f -name "erlang*" -exec ls -1rt "{}" \+ | xargs -I % sh -c 'echo "\n\n%"; cat %'
branches:
  only:
    - master
addons:
    hostname: travis.dev 
notifications:
  email:
    - [email protected]
  irc:
    channels:
      - "irc.freenode.org#erlware"
    use_notice: true
    skip_join: true