Skip to content

Commit bfd80b8

Browse files
Linux (#33)
* update templates to support linux * migrate swift package to swift5.2 and add test target * ignore linux auto-generated tests * update tests: add supports to linux platform minor changes * install bow-openapi in linux update makefile * fix tests for being compatible with linux * update docs and Reamde including information about how-to install in unix * migrate CI from travis to GH actions * update dependencies * fix nef Playground - Documentation minor changes minor changes * let build bow-openapi — dummy fixtures minor changes update CI minor changes minor changes minor changes * update docs with makefile dummy api fixtures for building package fix targz minor changes * update CI and remove sudo permissions in makefile minor changes sudo privileges to CI (linux) Update Documentation.app/Contents/MacOS/Quick start.playground/Pages/Installation guide.xcplaygroundpage/Contents.swift Co-authored-by: Tomás Ruiz-López <truizlop@gmail.com> Update Tests/APIHelperTests.swift Co-authored-by: Tomás Ruiz-López <truizlop@gmail.com> migrate templates to swift 5.2 comments in PR * comments in PR * remove unuseful files
1 parent 4791cb4 commit bfd80b8

File tree

65 files changed

+541
-1301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+541
-1301
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: macos-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Switch Xcode version
15+
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
16+
- name: Generate microsite
17+
run: |
18+
brew install nef
19+
brew install sourcekitten
20+
gem install bundler -v 2.0.2
21+
gem install cocoapods -v 1.9.1
22+
bundle install --gemfile docs/Gemfile --path vendor/bundle
23+
nef jekyll --project Documentation.app --output docs --main-page Documentation.app/Jekyll/Home.md
24+
BUNDLE_GEMFILE=./docs/Gemfile bundle exec jekyll build -s docs -d gen-docs
25+
- name: Deploy microsite
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
personal_token: ${{ secrets.DEPLOY_TOKEN }}
29+
publish_branch: gh-pages
30+
publish_dir: ./gen-docs
31+
disable_nojekyll: true

.github/workflows/nef-compile.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: nef verify documentation
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: macos-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Switch Xcode version
13+
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
14+
- name: Compile documentation
15+
run: |
16+
brew install nef
17+
gem install cocoapods -v 1.9.1
18+
nef compile --project Documentation.app

.github/workflows/swift.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Compile and test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
macos:
7+
name: macos
8+
runs-on: macos-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Switch Xcode version
13+
run: sudo xcode-select -s /Applications/Xcode_11.4.1.app/Contents/Developer
14+
- name: Run tests
15+
run: |
16+
brew cask install adoptopenjdk8
17+
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
18+
export PATH=${JAVA_HOME}/bin:$PATH
19+
brew install swagger-codegen
20+
make macos
21+
swift test
22+
- name: Generate linux tests
23+
run: |
24+
swift test --generate-linuxmain
25+
rm -rf .build
26+
- name: Cached auto-generate linux tests
27+
uses: actions/upload-artifact@v1
28+
with:
29+
name: generate-linuxmain
30+
path: .
31+
32+
linux:
33+
name: linux
34+
needs: macos
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Get auto-generate linux tests
39+
uses: actions/download-artifact@v1
40+
with:
41+
name: generate-linuxmain
42+
path: .
43+
- name: Remove generated artifact
44+
uses: geekyeggo/delete-artifact@v1
45+
with:
46+
name: generate-linuxmain
47+
failOnError: false
48+
- name: Run tests
49+
run: |
50+
sudo make linux
51+
swift test

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
build/
77
DerivedData
88
**/.DS_Store
9-
api
9+
**/FixturesAPI
1010
xcuserdata/
1111
xcshareddata/
12+
Bow OpenAPI.xcodeproj
13+
BowOpenAPI.xcodeproj
1214

1315
## Various settings
1416
*.pbxuser
@@ -50,3 +52,7 @@ vendor/
5052
/lib/bundler/man/
5153
docs/docs/*
5254
/docs/_data/sidebar.yml
55+
56+
# Linux auto-generated files
57+
**/LinuxMain.swift
58+
**/Tests/XCTestManifests.swift

.travis.yml

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

0 commit comments

Comments
 (0)