-
Notifications
You must be signed in to change notification settings - Fork 34
/
circle.yml
37 lines (37 loc) · 1.42 KB
/
circle.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
machine:
services:
- docker
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
dependencies:
pre:
- echo "erlang 18.3" >> .tool-versions
- echo "elixir 1.3.4" >> .tool-versions
- if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi
- asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git
- asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git
- erlang_version=$(awk '/erlang/ { print $2 }' .tool-versions) && asdf install erlang ${erlang_version}
- elixir_version=$(awk '/elixir/ { print $2 }' .tool-versions) && asdf install elixir ${elixir_version}
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
- sudo apt-get update
- sudo apt-get install mssql-tools unixodbc-dev
- echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
- source ~/.bashrc
- docker run -d -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=${SQL_PASSWORD}' -p 1433:1433 --name=sqlserver --restart=no --bind 127.0.0.1 microsoft/mssql-server-linux
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
cache_directories:
- ~/.asdf
- ~/.mix
- deps
- _build
general:
branches:
only:
- ecto2
test:
override:
- mix test
- docker rm -f sqlserver