Skip to content

Commit

Permalink
Prepare for release 0.5.0 (#4)
Browse files Browse the repository at this point in the history
Changes:
- Remove .swift-version
- Test multiple versions of Swift on Travis CI (4.1, 4.1.2, 4.2)
  • Loading branch information
eneko authored Oct 14, 2018
1 parent 60c89ef commit 1fc31be
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

73 changes: 49 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,55 @@
language: generic

matrix:
jobs:
include:
- os: linux
- stage: Continuous Integration
name: Linux Swift 4.1
os: linux
dist: trusty
sudo: required
- os: osx
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- swiftenv install 4.1
- swiftenv local 4.1
- swift --version
script:
- swift test --parallel
- stage: Continuous Integration
name: Linux Swift 4.2
os: linux
dist: trusty
sudo: required
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
- swiftenv install 4.2
- swiftenv local 4.2
- swift --version
script:
- swift test --parallel
- stage: Continuous Integration
name: macOS Swift 4.1
os: osx
osx_image: xcode9.3

install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
swiftenv install 4.1;
swiftenv local 4.1;
fi
- swift --version

script:
- swift test --parallel
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
swift package generate-xcodeproj --enable-code-coverage;
xcodebuild -scheme MarkdownGenerator-Package test;
fi

after_success:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash <(curl -s https://codecov.io/bash);
fi

script:
- swift test --parallel
- stage: Continuous Integration
name: macOS Swift 4.1.2
os: osx
osx_image: xcode9.4
script:
- swift test --parallel
- stage: Continuous Integration
name: macOS Swift 4.2
os: osx
osx_image: xcode10
script:
- swift test --parallel
- stage: Continuous Integration
name: Code Coverage (Swift 4.1)
os: osx
osx_image: xcode9.3
script:
- swift package generate-xcodeproj --enable-code-coverage
- xcodebuild -scheme MarkdownGenerator-Package test
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


![Release](https://img.shields.io/github/release/eneko/markdowngenerator.svg)
![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg)
![Swift 4.1](https://img.shields.io/badge/Swift-4.1-orange.svg)
[![Build Status](https://travis-ci.org/eneko/MarkdownGenerator.svg?branch=master)](https://travis-ci.org/eneko/MarkdownGenerator)
[![codecov](https://codecov.io/gh/eneko/MarkdownGenerator/branch/master/graph/badge.svg)](https://codecov.io/gh/eneko/MarkdownGenerator)
[![Swift Package Manager Compatible](https://img.shields.io/badge/spm-compatible-brightgreen.svg)](https://swift.org/package-manager)
Expand Down

0 comments on commit 1fc31be

Please sign in to comment.