Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from nodes-vapor/feature/align-ci
Browse files Browse the repository at this point in the history
Align CI
  • Loading branch information
steffendsommer committed Dec 28, 2017
2 parents 0199170 + 05d62c6 commit afac054
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 38 deletions.
66 changes: 56 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,65 @@
version: 2
jobs:
build:
docker:
- image: buildpack-deps:trusty
MacOS:
macos:
xcode: "9.0"
steps:
- checkout
- restore_cache:
keys:
- v1-spm-deps-{{ checksum "Package.swift" }}
- run:
name: Install Swift
command: 'eval "$(curl -sL https://apt.vapor.sh)"'
name: Install CMySQL and CTLS
command: |
brew tap vapor/homebrew-tap
brew install cmysql
brew install ctls
- run:
name: Install Vapor toolbox
name: Build and Run Tests
no_output_timeout: 1800
command: |
sudo apt-get install --yes vapor
sudo apt-get install --yes cmysql
sudo chmod -R a+rx /usr/
swift package generate-xcodeproj --enable-code-coverage
xcodebuild -scheme Gatekeeper-Package -enableCodeCoverage YES test | xcpretty
- run:
name: Run Tests
name: Report coverage to Codecov
command: |
bash <(curl -s https://codecov.io/bash)
- save_cache:
key: v1-spm-deps-{{ checksum "Package.swift" }}
paths:
- .build
Linux:
docker:
- image: brettrtoomey/vapor-ci:0.0.1
steps:
- checkout
- restore_cache:
keys:
- v2-spm-deps-{{ checksum "Package.swift" }}
- run:
name: Copy Package file
command: cp Package.swift res
- run:
name: Build and Run Tests
no_output_timeout: 1800
command: |
swift test -Xswiftc -DNOJSON
- run:
name: Restoring Package file
command: mv res Package.swift
- save_cache:
key: v2-spm-deps-{{ checksum "Package.swift" }}
paths:
- .build
workflows:
version: 2
build-and-test:
jobs:
- MacOS
- Linux
experimental:
notify:
branches:
only:
- master
- develop
2 changes: 2 additions & 0 deletions .codebeatignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Public/**
Resources/Assets/**
12 changes: 12 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
included:
- Sources
function_body_length:
warning: 60
variable_name:
min_length:
warning: 2
line_length: 80
disabled_rules:
- opening_brace
colon:
flexible_right_spacing: true
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Nodes Vapor
Copyright (c) 2017-2018 Nodes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Gatekeeper 👮
[![Swift Version](https://img.shields.io/badge/Swift-3.1-brightgreen.svg)](http://swift.org)
[![Swift Version](https://img.shields.io/badge/Swift-3-brightgreen.svg)](http://swift.org)
[![Vapor Version](https://img.shields.io/badge/Vapor-2-F6CBCA.svg)](http://vapor.codes)
[![Linux Build Status](https://img.shields.io/circleci/project/github/nodes-vapor/gatekeeper.svg?label=Linux)](https://circleci.com/gh/nodes-vapor/gatekeeper)
[![macOS Build Status](https://img.shields.io/travis/nodes-vapor/gatekeeper.svg?label=macOS)](https://travis-ci.org/nodes-vapor/gatekeeper)
[![codebeat badge](https://codebeat.co/badges/52c2f960-625c-4a63-ae63-52a24d747da1)](https://codebeat.co/projects/github-com-nodes-vapor-gatekeeper)
[![Circle CI](https://circleci.com/gh/nodes-vapor/gatekeeper/tree/master.svg?style=shield)](https://circleci.com/gh/nodes-vapor/gatekeeper)
[![codebeat badge](https://codebeat.co/badges/35c7b0bb-1662-44ae-b953-ab1d4aaf231f)](https://codebeat.co/projects/github-com-nodes-vapor-gatekeeper-master)
[![codecov](https://codecov.io/gh/nodes-vapor/gatekeeper/branch/master/graph/badge.svg)](https://codecov.io/gh/nodes-vapor/gatekeeper)
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/nodes-vapor/gatekeeper)](http://clayallsopp.github.io/readme-score?url=https://github.com/nodes-vapor/gatekeeper)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nodes-vapor/gatekeeper/master/LICENSE)
Expand Down

0 comments on commit afac054

Please sign in to comment.