File tree Expand file tree Collapse file tree 5 files changed +103
-102
lines changed
Expand file tree Collapse file tree 5 files changed +103
-102
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ stages :
2+ - Platform Tests
3+ - Docs
4+
5+ pages :
6+ stage : Docs
7+ only :
8+ - tags
9+ image : norionomura/jazzy
10+ tags :
11+ - docker
12+ variables :
13+ MODULE_NAME : " RediStack"
14+ REPO_URL : " https://gitlab.com/mordil/swift-redi-stack"
15+ script : |
16+ export VERSION=$(git describe --abbrev=0 --tags || echo "0.0.0")
17+ swift build
18+ sourcekitten doc --spm-module "$MODULE_NAME" > "./$MODULE_NAME.json"
19+ jazzy --clean \
20+ --author "Nathan Harris (Mordil)" \
21+ --readme "./README.md" \
22+ --author_url "https://www.mordil.info" \
23+ --github_url "$REPO_URL" \
24+ --github-file-prefix "$REPO_URL/blob/$VERSION" \
25+ --root-url "https://mordil.gitlab.io/swift-redi-stack/" \
26+ --module "$MODULE_NAME" \
27+ --module-version "$VERSION" \
28+ --theme docs/theme \
29+ --sourcekitten-sourcefile "./$MODULE_NAME.json" \
30+ --output "./public"
31+ artifacts :
32+ paths :
33+ - public
34+
35+ Ubuntu Bionic :
36+ stage : Platform Tests
37+ trigger :
38+ strategy : depend
39+ include : ' /.gitlab-ci/ubuntu-bionic.yml'
40+
41+ Ubuntu Xenial :
42+ stage : Platform Tests
43+ trigger :
44+ strategy : depend
45+ include : ' /.gitlab-ci/ubuntu-xenial.yml'
Original file line number Diff line number Diff line change 1+ stages :
2+ - Test
3+
4+ .unit-test :
5+ stage : Test
6+ tags :
7+ - docker
8+ variables :
9+ REDIS_URL : ' redis'
10+ REDIS_PW : ' password'
11+ SANITIZER_ARG : ' --sanitize=thread'
12+ services :
13+ - name : redis:5
14+ alias : ' redis'
15+ command : ["redis-server", "--requirepass", "password"]
16+ script :
17+ - swift build --build-tests $SANITIZER_ARG -v
18+ - swift test --skip-build
Original file line number Diff line number Diff line change 1+ include : ' /.gitlab-ci/test-template.yml'
2+
3+ swift 5.0 :
4+ extends : .unit-test
5+ image : swift:5.0-bionic
6+ variables :
7+ SANITIZER_ARG : ' '
8+
9+ swift 5.1 :
10+ extends : .unit-test
11+ image : swift:5.1-bionic
12+
13+ swift 5.2 :
14+ extends : .unit-test
15+ image : swiftlang/swift:nightly-5.2-bionic
16+
17+ swift trunk :
18+ extends : .unit-test
19+ image : swiftlang/swift:nightly-master-bionic
20+ allow_failure : true
Original file line number Diff line number Diff line change 1+ include : ' /.gitlab-ci/test-template.yml'
2+
3+ swift 5.0 :
4+ extends : .unit-test
5+ image : swift:5.0-xenial
6+ variables :
7+ SANITIZER_ARG : ' '
8+
9+ swift 5.1 :
10+ extends : .unit-test
11+ image : swift:5.1-xenial
12+
13+ swift 5.2 :
14+ extends : .unit-test
15+ image : swiftlang/swift:nightly-5.2-xenial
16+
17+ swift trunk :
18+ extends : .unit-test
19+ image : swiftlang/swift:nightly-master-xenial
20+ allow_failure : true
You can’t perform that action at this time.
0 commit comments