Skip to content

Commit bd29ef6

Browse files
committed
Try making Travis cache the SwiftPM dependencies, for faster CI builds.
(Also separate the dependency resolution and main build steps into separate steps, so we can time each one individually.)
1 parent 7935aeb commit bd29ef6

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.travis.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ os:
1919
- linux
2020
- osx
2121

22+
cache:
23+
apt: true
24+
directories:
25+
- .build/checkouts
26+
- .build/repositories
27+
2228
# Use Ubuntu 14.04
2329
dist: trusty
2430

@@ -29,23 +35,25 @@ sudo: false
2935
addons:
3036
apt:
3137
packages:
32-
- clang-3.8
33-
- lldb-3.8
34-
- libicu-dev
35-
- libtool
36-
- libcurl4-openssl-dev
37-
- libbsd-dev
38-
- build-essential
39-
- libssl-dev
40-
- uuid-dev
41-
- curl
42-
- unzip
38+
- clang-3.8
39+
- lldb-3.8
40+
- libicu-dev
41+
- libtool
42+
- libcurl4-openssl-dev
43+
- libbsd-dev
44+
- build-essential
45+
- libssl-dev
46+
- uuid-dev
47+
- curl
48+
- unzip
4349

4450
install: ./.travis-install.sh
4551

4652
script:
4753
- export PATH=$HOME/local/bin:$PATH
4854
- export LD_LIBRARY_PATH=$HOME/local/lib
55+
- swift package -v resolve
56+
- make all
4957
- make test
5058
- make test-plugin
5159
- make test-echo

0 commit comments

Comments
 (0)