Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit 556afd1

Browse files
committed
Simplify Travis build script
As travis-ci/travis-ci#2205 is fixed, we don't need the $TRAVIS_OS_UNAME variable any longer.
1 parent 9962cb8 commit 556afd1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
language: c
55

6-
env:
7-
- TRAVIS_OS_UNAME=$(uname -s)
8-
96
os:
107
- osx
118
- linux
@@ -17,8 +14,8 @@ before_install:
1714

1815
# Make sure CMake and Mono are installed
1916
install:
20-
- if [[ $TRAVIS_OS_UNAME = 'Linux' ]]; then ./CI/travis.linux.install.deps.sh; fi
21-
- if [[ $TRAVIS_OS_UNAME = 'Darwin' ]]; then ./CI/travis.osx.install.deps.sh; fi
17+
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./CI/travis.linux.install.deps.sh; fi
18+
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./CI/travis.osx.install.deps.sh; fi
2219

2320
# Build libgit2, LibGit2Sharp and run the tests
2421
script:

0 commit comments

Comments
 (0)