-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
48 lines (46 loc) · 1.6 KB
/
.travis.yml
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
46
47
48
stages:
- tests
# TODO: Automatically deploy to Heroku now instead of Gigalixir
# - name: deploy
# if: branch = master
jobs:
include:
- stage: tests
language: elixir
elixir: '1.11.0'
otp_release: '22.3'
dist: xenial
addons:
- postgresql: '9.6'
services:
- postgresql
- xvfb # Available in xenial
env:
- MIX_ENV=test
cache:
directories:
- _build
- deps
before_script:
# From https://github.com/keathley/wallaby/blob/master/.travis.yml
- export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE_73.0.3683`
- curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
- unzip chromedriver_linux64.zip
- sudo chmod +x chromedriver
- sudo mv chromedriver /usr/local/bin
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
- sudo apt-get update
- sudo apt-get --only-upgrade install google-chrome-stable
- psql -c "create user magpie_dev with password 'magpie';" -U postgres
- psql -c "alter user magpie_dev createdb" -U postgres
script:
- mix do ecto.create, ecto.migrate
- mix test
- mix coveralls.travis
# - stage: deploy
# dist: xenial
# language: minimal
# script: skip
# after_script:
# - git remote add gigalixir https://$GIGALIXIR_EMAIL:[email protected]/$GIGALIXIR_APP_NAME.git
# - git push -f gigalixir HEAD:refs/heads/master