Skip to content

Commit 02f3fb7

Browse files
committed
Update nightlies to use 'official' nightlies on all linux platforms
1 parent 8e48e93 commit 02f3fb7

File tree

5 files changed

+103
-102
lines changed

5 files changed

+103
-102
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.gitlab-ci/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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'

.gitlab-ci/test-template.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

.gitlab-ci/ubuntu-bionic.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

.gitlab-ci/ubuntu-xenial.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)