Skip to content

Commit 761c594

Browse files
committed
Create .travis.yml
1 parent 655fba8 commit 761c594

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Only create a build job IF there is no tag in the commit
2+
if: tag IS blank
3+
# Only create a build job IF the branch is 'master'
4+
branches:
5+
only:
6+
- master
7+
# Set environment variables for the build job
8+
env:
9+
global:
10+
# PACKAGE_VERSION will be used by travis to create the Github release tag
11+
- PACKAGE_VERSION=0.0.1
12+
jobs:
13+
include:
14+
# The first stage will run all unit tests using Ubuntu
15+
- stage: Test
16+
os:
17+
- osx
18+
language: objective-c
19+
osx_image: xcode11.2
20+
install:
21+
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
22+
script:
23+
- swift package update
24+
- swift build
25+
- swift test
26+
# The final stage will create a new Github tag using the version specified above, this will create
27+
# a new release in Github
28+
- stage: Set tag
29+
script:
30+
- git config --global user.email "[email protected]"
31+
- git config --global user.name "Travis CI"
32+
- git tag $PACKAGE_VERSION
33+
# - git push --quiet https://[email protected]/smuellner/MultiUser-for-swift --tag > /dev/null 2>&1
34+

0 commit comments

Comments
 (0)