diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..740432a --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*~ + +.idea +.vscode + +/images +/versions/**/sphinxsearch.tar.gz \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6fa7cf6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2016 Leo Di Donato + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..e942d3c --- /dev/null +++ b/circle.yml @@ -0,0 +1,41 @@ +general: + artifacts: + - "images" + +machine: + services: + - docker + +dependencies: + cache_directories: + - "~/docker" + - "~/deps" + pre: + - if [[ ! -e ~/deps/bats_v0.4.0.tar.gz ]]; then mkdir -p ~/deps; curl -sSL -o ~/deps/bats_v0.4.0.tar.gz https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz; fi + - tar -xf ~/deps/bats_v0.4.0.tar.gz + - sudo bats-0.4.0/install.sh /usr/local + override: + - docker info + - if [[ -e ~/docker/builder.tar ]]; then docker load --input ~/docker/builder.tar; fi + - ./build.bash: + parallel: true + files: + - versions/**/options + - mkdir -p ~/docker; docker save sphinxsearch-builder > ~/docker/builder.tar + - docker images + +test: + override: + - ./build.bash test: + parallel: true + files: + - versions/**/options + +deployment: + hub: + branch: master + commands: + - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWORD: + parallel: true + - ./build.bash push: + parallel: true \ No newline at end of file