-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a7ec50
commit 9f0f73c
Showing
1 changed file
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,53 @@ | ||
language: elixir | ||
|
||
sudo: false | ||
|
||
# Erlang and Elixir default versions (overridden in some jobs). | ||
elixir: 1.9.0 | ||
otp_release: 22.0 | ||
|
||
stages: | ||
- check formatted | ||
- test | ||
- check js | ||
|
||
env: | ||
global: | ||
- MIX_ENV=test | ||
- DISPLAY=:99.0 | ||
- NODE_VERSION="10.10.0" | ||
|
||
before_script: | ||
- sh -e /etc/init.d/xvfb start | ||
before_install: | ||
- nvm install $NODE_VERSION | ||
script: | ||
- if [ "$CHECK_FORMATTED" = true ]; then mix format --check-formatted; fi | ||
- mix test | ||
- bash test/prerelease.sh | ||
- if [ "$CHECK_JS" = true ]; then npm install; npm run lint; npm run test; fi | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
- deps | ||
|
||
addons: | ||
firefox: "54.0" | ||
env: | ||
global: | ||
- MIX_ENV=test | ||
- DISPLAY=:99.0 | ||
- NODE_VERSION="10.10.0" | ||
matrix: | ||
|
||
jobs: | ||
include: | ||
- elixir: 1.9.0 | ||
otp_release: 22.0 | ||
env: | ||
- CHECK_FORMATTED=true | ||
- CHECK_JS=true | ||
- stage: test | ||
script: | ||
- mix test | ||
- bash test/prerelease.sh | ||
|
||
- elixir: 1.8.1 | ||
otp_release: 21.2 | ||
|
||
- elixir: 1.7.3 | ||
otp_release: 19.3 | ||
|
||
- stage: check formatted | ||
script: mix format --check-formatted | ||
before_install: skip | ||
|
||
- stage: check js | ||
script: | ||
- nvm install $NODE_VERSION | ||
- npm install | ||
- npm run lint | ||
- npm run test |