Skip to content

Commit

Permalink
adding cyrcle.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaric committed Feb 26, 2017
1 parent 68ad522 commit 24b4bfa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

MSSQL / TDS Adapter for Ecto

[![CircleCI](https://circleci.com/gh/mjaric/tds_ecto.svg?style=svg)](https://circleci.com/gh/mjaric/tds_ecto)

This branch is an alpha version that currently aims to support Ecto 2.0. Please check the issues tagged ecto2 for a more complete overview. This branch should not yet be considered stable or used in production.

## Example
Expand Down
31 changes: 31 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
dependencies:
pre:
- 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}
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix deps.compile
- 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 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Som320923!!!2932#ePassword2938474' -p 1433:1433 -d microsoft/mssql-server-linux
- sqlcmd -S localhost -U SA -P Som320923!!!2932#ePassword2938474 -Q "CREATE LOGIN mssql WITH PASSWORD = 'mssql'; CREATE USER mssql FOR LOGIN mssql; sp_addsrvrolemember 'mssql', 'sysadmin'"
cache_directories:
- ~/.asdf
- ~/.mix
- deps
- _build
general:
branches:
only:
- ecto2
test:
override:
- mix test

0 comments on commit 24b4bfa

Please sign in to comment.