Skip to content

Instantly share code, notes, and snippets.

@mz2
Created March 27, 2017 11:22
Show Gist options
  • Save mz2/65c32e691ae55d1b8c3e49391fdd986a to your computer and use it in GitHub Desktop.
Save mz2/65c32e691ae55d1b8c3e49391fdd986a to your computer and use it in GitHub Desktop.
An example .gitlab-ci.yml for running Vapor tests
before_script:
- git submodule update --init --recursive
cache:
key: ${CI_BUILD_REF_NAME}
paths:
- .build
build:
script:
- swift build -c debug
tags:
- swift
test:
script:
- .build/debug/App --env=test prepare --revert -y
- .build/debug/App --env=test prepare
- swift test
tags:
- swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment