From c631a2b09956e6938e35e9d54e1df924a0e75f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Va=CC=81radi?= Date: Fri, 22 Dec 2017 17:47:07 +0100 Subject: [PATCH] Update CircleCI to 2.0 --- .circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++++ circle.yml | 16 ---------------- 2 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c9d0cf7 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2 + +jobs: + macos: + macos: + xcode: "9.0" + steps: + - run: brew install vapor/tap/vapor + - checkout + - run: swift build + - run: swift test + + linux-3: + docker: + - image: swift:3.1.1 + steps: + - run: apt-get install -yq libssl-dev + - checkout + - run: swift build + - run: swift test + + linux: + docker: + - image: swift:4.0.3 + steps: + - run: apt-get install -yq libssl-dev + - checkout + - run: swift build + - run: swift test + +workflows: + version: 2 + tests: + jobs: + - macos + - linux-3 + - linux diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 55985d4..0000000 --- a/circle.yml +++ /dev/null @@ -1,16 +0,0 @@ -dependencies: - override: - - eval "$(curl -sL https://apt.vapor.sh)" - - sudo apt-get install swift - - sudo chmod -R a+rx /usr/ -test: - override: - - swift build - - swift build -c release - - swift test - - sudo apt-get remove swift - - sudo apt-get install swift-beta - - swift build - - swift build -c release - - swift test - \ No newline at end of file