Skip to content

Commit dfad288

Browse files
committed
also test fluentpostgresql + nightly circle ci tests
1 parent 265fba3 commit dfad288

File tree

1 file changed

+57
-5
lines changed

1 file changed

+57
-5
lines changed

circle.yml

+57-5
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,67 @@ jobs:
1717
POSTGRES_DB: postgres
1818
POSTGRES_PASSWORD: ""
1919
steps:
20-
- run: apt-get update
21-
- run: apt-get install -yq libssl-dev pkg-config
20+
- run:
21+
name: Update APT
22+
command: apt-get update
23+
- run:
24+
name: Install Swift NIO dependencies
25+
command: apt-get install -yq pkg-config libssl-dev
2226
- checkout
23-
- run: swift build
24-
- run: swift test
25-
- run: swift build -c release
27+
- run:
28+
name: Compile code
29+
command: swift build
30+
- run:
31+
name: Run unit tests
32+
command: swift test
33+
- run:
34+
name: Compile code with optimizations
35+
command: swift build -c release
36+
37+
linux-fluent:
38+
docker:
39+
- image: norionomura/swift:swift-4.1-branch
40+
- image: circleci/postgres:latest
41+
environment:
42+
POSTGRES_USER: postgres
43+
POSTGRES_DB: postgres
44+
POSTGRES_PASSWORD: ""
45+
steps:
46+
- run:
47+
name: Update APT
48+
command: apt-get update
49+
- run:
50+
name: Install Swift NIO dependencies
51+
command: apt-get install -yq pkg-config libssl-dev
52+
- run:
53+
name: Clone Fluent PostgreSQL
54+
command: git clone -b nio https://github.com/vapor/fluent-postgresql.git
55+
working_directory: ~/
56+
- run:
57+
name: Switch Fluent PostgreSQL to this PostgreSQL revision
58+
command: swift package edit PostgreSQL --revision $CIRCLE_SHA1
59+
working_directory: ~/fluent-postgresql
60+
- run:
61+
name: Run Fluent PostgreSQL unit tests
62+
command: swift test
63+
working_directory: ~/fluent-postgresql
64+
2665
workflows:
2766
version: 2
2867
tests:
68+
jobs:
69+
- linux
70+
- linux-fluent
71+
# - macos
72+
73+
nightly:
74+
triggers:
75+
- schedule:
76+
cron: "0 0 * * *"
77+
filters:
78+
branches:
79+
only:
80+
- master
2981
jobs:
3082
- linux
3183
# - macos

0 commit comments

Comments
 (0)