aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: a60d6bb9dc9580bb1b9841b821eb73788e582ac5 (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
language: bash
sudo: false
os: osx

env:
  global:
  - KERL_BASE_DIR="$TMPDIR"/.kerl
  - KERL_BUILD_BACKEND=git
  - KERL_CONFIGURE_DISABLE_APPLICATIONS='odbc'
  matrix:
  - _KERL_VSN=21.0
  - _KERL_VSN=20.3
  - _KERL_VSN=19.3
  - _KERL_VSN=18.3
  - _KERL_VSN=17.5
  - _KERL_VSN=R16B03-1

before_script: set -e
after_script: set +e
script:
- ./kerl update releases
- travis_wait 45 ./kerl build "$_KERL_VSN" "$_KERL_VSN"
- ./kerl install "$_KERL_VSN" "install_$_KERL_VSN"
- ./kerl status
- |
  source $(./kerl path install_$_KERL_VSN)/activate
  erl -s crypto -s init stop
  kerl_deactivate
- |
  otp_major=$(echo "$_KERL_VSN" | cut -d. -f1)
  if ((travis_otp_major >= 18)); then
    source $(./kerl path install_$_KERL_VSN)/activate
    ./kerl install-docsh
    kerl_deactivate
    source $(./kerl path install_$_KERL_VSN)/activate
    erl -noshell -eval 'h(proplists).' -s init stop
    kerl_deactivate
  fi
- ./kerl delete installation $(./kerl path install_$_KERL_VSN)
- ./kerl delete build "$_KERL_VSN"