-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from vapor-ware/v2.0-merge
V2.0 merge
- Loading branch information
Showing
700 changed files
with
14,708 additions
and
85,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,78 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
|
||
# Run tests and linting for Synse Server | ||
test: | ||
working_directory: ~/synse-server | ||
docker: | ||
- image: python | ||
working_directory: /synse-server | ||
environment: | ||
- DOCKER_VERSION=17.09.1-ce | ||
- COMPOSE_VERSION=1.18.0 | ||
- image: circleci/python:3.6.4 | ||
steps: | ||
- checkout | ||
|
||
- setup_remote_docker | ||
|
||
- run: | ||
name: Install Docker Client | ||
name: Install Dependencies | ||
command: | | ||
set -x | ||
curl -L -o /tmp/docker-${DOCKER_VERSION}.tgz https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz | ||
tar -xz -C /tmp -f /tmp/docker-${DOCKER_VERSION}.tgz | ||
mv /tmp/docker/* /usr/bin | ||
sudo chown -R circleci:circleci /usr/local/bin | ||
sudo chown -R circleci:circleci /usr/local/lib/python3.6/site-packages | ||
pip install tox>=2.9.0 | ||
- restore_cache: | ||
keys: | ||
- v1.5-tox-test-cache-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: Install Docker compose | ||
command: | | ||
set -x | ||
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | ||
chmod +x /usr/local/bin/docker-compose | ||
name: Unit Tests | ||
command: make test-unit | ||
- run: | ||
name: Docker Compose Build | ||
command: docker-compose -f compose/release.yml build | ||
name: Integration Tests | ||
command: make test-integration | ||
- save_cache: | ||
key: v1.5-tox-test-cache-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
paths: | ||
- .tox/py36 | ||
- restore_cache: | ||
keys: | ||
- v2.6-tox-lint-cache-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
- run: | ||
name: Run tests | ||
name: Lint | ||
command: make lint | ||
- save_cache: | ||
key: v2.6-tox-lint-cache-{{ checksum "requirements.txt" }}-{{ checksum "tox.ini" }} | ||
paths: | ||
- .tox/lint | ||
- store_artifacts: | ||
path: ./results | ||
- store_test_results: | ||
path: ./results/pytest | ||
|
||
# Build and push the Synse Server docker image to DockerHub | ||
build-push: | ||
working_directory: ~/synse-server | ||
docker: | ||
- image: circleci/python:3.6.4 | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Build Images | ||
command: | | ||
make docker | ||
- run: | ||
name: Push Images | ||
command: | | ||
make test | ||
docker login -u ${DOCKER_USER} -p ${DOCKER_PS} | ||
for tag in $(make tags); do | ||
docker push ${tag} | ||
done | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- test | ||
- build-push: | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- v2.0-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# | ||
# .dockerignore.slim | ||
# | ||
# The dockerignore file used for slim Synse Server image builds. | ||
# The slim build of Synse Server does not include the emulator. | ||
# For a version of Synse Server with the emulator, use the standard | ||
# build. | ||
# | ||
|
||
# Emulator | ||
emulator/ | ||
|
||
# JetBrains (PyCharm, WebStorm, etc.) | ||
.idea | ||
*.iws | ||
.idea_modules | ||
|
||
# Linux | ||
*~ | ||
.directory | ||
.Trash-* | ||
**/packages | ||
|
||
# OSX | ||
.DS_Store | ||
._* | ||
.TemporaryItems | ||
.Trashes | ||
|
||
# Vagrant | ||
.vagrant | ||
|
||
# Git | ||
.git | ||
.gitignore | ||
|
||
# Python | ||
*.py[cod] | ||
**/__pycache__ | ||
**/.tox | ||
.pep8 | ||
|
||
# Logs | ||
logs/ | ||
*.log | ||
|
||
# Docker | ||
Dockerfile.* | ||
**/*.dockerfile | ||
|
||
# Docs | ||
docs/ | ||
**/*.md | ||
**/*.rst | ||
|
||
# Images | ||
**/*.png | ||
|
||
# Test Artifacts | ||
prof/ | ||
results/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include synse/locale *.mo |
Oops, something went wrong.