-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (33 loc) · 1.03 KB
/
.travis.yml
File metadata and controls
34 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Only create a build job IF there is no tag in the commit
if: tag IS blank
# Only create a build job IF the branch is 'master'
branches:
only:
- master
# Set environment variables for the build job
env:
global:
# PACKAGE_VERSION will be used by travis to create the Github release tag
- PACKAGE_VERSION=0.0.5
jobs:
include:
# The first stage will run all unit tests using Ubuntu
- stage: Test
os:
- osx
language: objective-c
osx_image: xcode11.2
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script:
- swift package update
- swift build
- swift test
# The final stage will create a new Github tag using the version specified above, this will create
# a new release in Github
#- stage: Set tag
#script:
#- git config --global user.email "builds@travis-ci.com"
#- git config --global user.name "Travis CI"
# - git tag $PACKAGE_VERSION
# - git push --quiet https://$GH_TOKEN@github.com/smuellner/MultiUser-for-swift --tag > /dev/null 2>&1