summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2019-01-29 15:04:38 +0200
committergarren smith <garren.smith@gmail.com>2019-01-31 12:22:17 +0200
commita5ead1f0ef07cd29789f1622becd42c070f2d5bd (patch)
tree14f7e5dfa6d04f051063cf9faa855edfa8c6b6cb
parent7918fba2a5b5ce416e6a7b4ce7cc93261ec57de4 (diff)
downloadcouchdb-a5ead1f0ef07cd29789f1622becd42c070f2d5bd.tar.gz
add elixir tests to travis
Add the elixir test to `make check` and change the build language in travis from erlang to elixir.
-rw-r--r--.travis.yml8
-rw-r--r--Makefile1
-rw-r--r--test/elixir/mix.exs2
3 files changed, 9 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 44ecb9950..f75dd0454 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
-language: erlang
+language: elixir
+elixir: 1.6.6
os: linux
dist: trusty
@@ -39,6 +40,10 @@ env:
- secure: "UdA/gKIlyuXaW+hUgRx40t1TYjLCGxMqHvM5Uw7UbUH2dqEkgJiLfhZGchS1JVzl8M01VKZUUzS7v2nvRLiHZN1kvaw5kfq31VRoafUah8jfmvqNWZVdLovHl3aw5UX/HRt0RkbWbhdbdknTfh6+YinSZ+Nb54jCErMg9nabXtM="
- COUCHDB_IO_LOG_DIR=/tmp/couchjslogs
+# Change to elixir folder so that travis can run mix deps.get during install
+before_install:
+ - cd test/elixir
+
# Enable this block if you want to build docs & fauxton too
#node_js:
# - 6
@@ -47,6 +52,7 @@ env:
# Then comment this section out
before_script:
+ - cd ../..
- kerl list installations
- rm -rf /tmp/couchjslogs
- mkdir -p /tmp/couchjslogs
diff --git a/Makefile b/Makefile
index c6cdcc350..ee44ea7f3 100644
--- a/Makefile
+++ b/Makefile
@@ -148,6 +148,7 @@ check: all
@$(MAKE) javascript
@$(MAKE) python-black
@$(MAKE) mango-test
+ @$(MAKE) elixir
# @$(MAKE) build-test
diff --git a/test/elixir/mix.exs b/test/elixir/mix.exs
index 68de5ce7a..37ea47910 100644
--- a/test/elixir/mix.exs
+++ b/test/elixir/mix.exs
@@ -5,7 +5,7 @@ defmodule Foo.Mixfile do
[
app: :foo,
version: "0.1.0",
- elixir: "~> 1.5",
+ elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps()