-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 884 Bytes
/
.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
language: elixir
otp_release:
- 17.4
addons:
postgresql: '9.3'
before_script:
- cp config/travis.exs config/test.exs
- cp .gitignore.travis .gitignore
- npm install -g brunch
- npm install
- brunch build --production
- mix phoenix.digest
- git config --global user.email "[email protected]"
- git config --global user.name "Nate West"
- git add priv && git commit -m "Heroku assets"
- MIX_ENV=test mix do deps.get, deps.compile, ecto.create, ecto.migrate
deploy:
provider: heroku
app: location-game
buildpack: https://github.com/HashNuke/heroku-buildpack-elixir.git
strategy: git-ssh
api_key:
secure: SrlGZ90AVszYkjlHRGrAOHT6McycgATX5ilbMdXmnNmyWq3ZqX6msX/QVB/T8dQL+sqpxv5cAB5OtxAH1noeA1FVdmRnbA+QGYQ3c59896bN3Zcb9iOWq5PRYVX5GSXj4GoqWU19U4SEjNtEpo1wReaWIvZb64ZHpApVsM1y8vA=
after_deploy:
- heroku run "mix ecto.migrate" -a location-game