December 2018
Intermediate to advanced
414 pages
10h 19m
English
As we saw in the Travis CI section, it is possible to build and test pure Swift programs on Linux systems. We will use this capability in GitLab. With the help of the official prebuilt Docker images, we can quickly set up the free, continuous integration on GitLab.
In your project, add a .gitlab-ci.yml file and insert the following into it:
test: image: swift:4.2.1 script: - swift package update - swift test
Line by line, here is what the code is doing:
Push those changes to your GitLab repository and you will see that your project will be ...
Read now
Unlock full access