File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments