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

Commit 35516e1

Browse files
Merge pull request #31 from nodes-vapor/feature/align-ci
Align CI
2 parents b629456 + a607a31 commit 35516e1

File tree

6 files changed

+74
-37
lines changed

6 files changed

+74
-37
lines changed

.circleci/config.yml

+56-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,65 @@
1+
version: 2
12
jobs:
2-
build:
3-
docker:
4-
- image: buildpack-deps:trusty
3+
MacOS:
4+
macos:
5+
xcode: "9.0"
56
steps:
67
- checkout
8+
- restore_cache:
9+
keys:
10+
- v1-spm-deps-{{ checksum "Package.swift" }}
711
- run:
8-
name: Install Swift
9-
command: 'eval "$(curl -sL https://apt.vapor.sh)"'
12+
name: Install CMySQL and CTLS
13+
command: |
14+
brew tap vapor/homebrew-tap
15+
brew install cmysql
16+
brew install ctls
1017
- run:
11-
name: Install Vapor toolbox
18+
name: Build and Run Tests
19+
no_output_timeout: 1800
1220
command: |
13-
sudo apt-get install --yes vapor
14-
sudo apt-get install --yes cmysql
15-
sudo chmod -R a+rx /usr/
21+
swift package generate-xcodeproj --enable-code-coverage
22+
xcodebuild -scheme AWS-Package -enableCodeCoverage YES test | xcpretty
1623
- run:
24+
name: Report coverage to Codecov
25+
command: |
26+
bash <(curl -s https://codecov.io/bash)
27+
- save_cache:
28+
key: v1-spm-deps-{{ checksum "Package.swift" }}
29+
paths:
30+
- .build
31+
Linux:
32+
docker:
33+
- image: brettrtoomey/vapor-ci:0.0.1
34+
steps:
35+
- checkout
36+
- restore_cache:
37+
keys:
38+
- v2-spm-deps-{{ checksum "Package.swift" }}
39+
- run:
40+
name: Copy Package file
41+
command: cp Package.swift res
42+
- run:
43+
name: Build and Run Tests
44+
no_output_timeout: 1800
1745
command: |
1846
swift test -Xswiftc -DNOJSON
19-
47+
- run:
48+
name: Restoring Package file
49+
command: mv res Package.swift
50+
- save_cache:
51+
key: v2-spm-deps-{{ checksum "Package.swift" }}
52+
paths:
53+
- .build
54+
workflows:
55+
version: 2
56+
build-and-test:
57+
jobs:
58+
- MacOS
59+
- Linux
60+
experimental:
61+
notify:
62+
branches:
63+
only:
64+
- master
65+
- develop

.codebeatignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Public/**
2+
Resources/Assets/**

.swiftlint.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
included:
2+
- Sources
3+
function_body_length:
4+
warning: 60
5+
variable_name:
6+
min_length:
7+
warning: 2
8+
line_length: 80
9+
disabled_rules:
10+
- opening_brace
11+
colon:
12+
flexible_right_spacing: true

.travis.yml

-22
This file was deleted.

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Nodes Agency - Operations
3+
Copyright (c) 2016-2018 Nodes
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# AWS
2-
[![Swift Version](https://img.shields.io/badge/Swift-3.1-brightgreen.svg)](http://swift.org)
2+
[![Swift Version](https://img.shields.io/badge/Swift-3-brightgreen.svg)](http://swift.org)
33
[![Vapor Version](https://img.shields.io/badge/Vapor-2-F6CBCA.svg)](http://vapor.codes)
4-
[![Linux Build Status](https://img.shields.io/circleci/project/github/nodes-vapor/aws.svg?label=Linux)](https://circleci.com/gh/nodes-vapor/aws)
5-
[![macOS Build Status](https://img.shields.io/travis/nodes-vapor/aws.svg?label=macOS)](https://travis-ci.org/nodes-vapor/aws)
6-
[![codebeat badge](https://codebeat.co/badges/52c2f960-625c-4a63-ae63-52a24d747da1)](https://codebeat.co/projects/github-com-nodes-vapor-aws)
4+
[![Circle CI](https://circleci.com/gh/nodes-vapor/aws/tree/master.svg?style=shield)](https://circleci.com/gh/nodes-vapor/aws)
5+
[![codebeat badge](https://codebeat.co/badges/255e7772-28ec-4695-bdd5-770cfd676d9c)](https://codebeat.co/projects/github-com-nodes-vapor-aws-master)
76
[![codecov](https://codecov.io/gh/nodes-vapor/aws/branch/master/graph/badge.svg)](https://codecov.io/gh/nodes-vapor/aws)
87
[![Readme Score](http://readme-score-api.herokuapp.com/score.svg?url=https://github.com/nodes-vapor/aws)](http://clayallsopp.github.io/readme-score?url=https://github.com/nodes-vapor/aws)
98
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nodes-vapor/aws/master/LICENSE)

0 commit comments

Comments
 (0)