move ci scripts and add generation step

This commit is contained in:
Yonas Kolb 2019-02-02 13:21:19 +11:00
parent eb02ebe3d0
commit aeaf35e197
5 changed files with 15 additions and 10 deletions

View File

@ -12,11 +12,14 @@ jobs:
name: Test
command: swift test 2>&1 | xcpretty
- run:
name: Check Project Diff
command: ./diff-fixtures.sh
name: Generate Fixtures
command: scripts/gen-fixtures.sh
- run:
name: Build Test Project
command: ./build-fixtures.sh
name: Check Fixture Diffs
command: scripts/diff-fixtures.sh
- run:
name: Build Fixtures
command: scripts/build-fixtures.sh
- run:
name: Build release
command: make build

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -e
swift run xcodegen --spec Tests/Fixtures/TestProject/project.yml
cd Tests/Fixtures/TestProject
./build.sh

5
scripts/build-fixtures.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
cd Tests/Fixtures/TestProject
./build.sh

View File

@ -1 +1,4 @@
#!/bin/bash
set -e
swift run xcodegen --spec Tests/Fixtures/TestProject/project.yml