File tree 1 file changed +57
-5
lines changed
1 file changed +57
-5
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,67 @@ jobs:
17
17
POSTGRES_DB : postgres
18
18
POSTGRES_PASSWORD : " "
19
19
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
22
26
- 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
+
26
65
workflows :
27
66
version : 2
28
67
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
29
81
jobs :
30
82
- linux
31
83
# - macos
You can’t perform that action at this time.
0 commit comments