Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit db4c3c1

Browse files
committed
Travis CI: Run make xref in addition to make tests
While here, test on Erlang 20.1. Also, we stop testing on Erlang 19.2: it's now unsupported. We take Elixir from Erlang Solutions packages because kiex is affected by GitHub API rate limiting. Finally, the sections are reordered so the scripts are at the end. It may help in the future if we want to template all the `.travis.tml` files. [#152509619]
1 parent e30c037 commit db4c3c1

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.travis.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
# vim:sw=2:et:
2-
sudo: false
32

3+
sudo: false
44
language: erlang
5-
65
notifications:
76
email:
87
8+
addons:
9+
apt:
10+
sources:
11+
- sourceline: deb https://packages.erlang-solutions.com/ubuntu trusty contrib
12+
key_url: https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
13+
packages:
14+
# Use Elixir from Erlang Solutions. The provided Elixir is
15+
# installed with kiex but is old. We also can't use kiex to
16+
# install a newer one because of GitHub API rate limiting.
17+
- elixir=1.4.5-1
18+
cache:
19+
apt: true
920

1021
otp_release:
11-
- "19.2"
1222
- "19.3"
13-
- "20.0"
23+
- "20.1"
1424

1525
before_script:
1626
# The checkout made by Travis is a "detached HEAD" and branches
@@ -24,12 +34,12 @@ before_script:
2434
git remote add upstream https://github.com/$TRAVIS_REPO_SLUG.git
2535
git fetch upstream stable:stable || :
2636
git fetch upstream master:master || :
27-
- kiex selfupdate
28-
- test -x ~/.kiex/elixirs/elixir-1.4.5/bin/elixir || kiex install 1.4.5
29-
- kiex default 1.4.5
30-
31-
script: make tests
37+
# Make sure we use Elixir from Erlang Solutions and not kiex.
38+
- |
39+
echo YES | kiex implode
40+
elixir --version
41+
elixir --version | grep -q 'Elixir 1.4.5'
3242
33-
cache:
34-
directories:
35-
- ~/.kiex/elixirs
43+
script:
44+
- make xref
45+
- make tests

0 commit comments

Comments
 (0)