Skip to content

Commit 7751a9b

Browse files
authored
Fixed OSX CI issues by using conda to manage dependencies. (shenwei356#120)
Fixed OSX CI issues by using conda to manage dependencies.
1 parent 239cc00 commit 7751a9b

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.travis.yml

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
language: go
22

3-
os:
4-
- linux
5-
- osx
3+
jobs:
4+
include:
5+
- os: linux
6+
dist: bionic
7+
- os: osx
8+
osx_image: xcode10
69

710
go:
811
- 1.x
912

13+
cache: miniconda3
14+
1015
before_install:
16+
- if [ $TRAVIS_OS_NAME = "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi;
17+
- if [ $TRAVIS_OS_NAME = "osx" ]; then wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi;
18+
- bash ./miniconda.sh -u -b -p ./miniconda3 && source ./miniconda3/bin/activate;
19+
- conda init bash && source $HOME/.bashrc;
20+
- conda update -q --yes conda;
21+
- conda update -q --yes --all;
22+
- conda config --add channels conda-forge;
23+
- conda config --add channels conda-forge;
24+
- conda install -q --yes sed openssl;
25+
1126

1227
script:
1328
- ./tests/test.sh

tests/test.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app=./seqkit/seqkit
1010

1111
set +e
1212

13-
which csvtk || (git clone https://github.com/shenwei356/csvtk; cd ./csvtk/csvtk; go get -v ... ; go build)
13+
which csvtk || (git clone --depth 1 https://github.com/shenwei356/csvtk; cd ./csvtk/csvtk; go get -v ... ; go build)
1414
CSVTK=csvtk
1515
which csvtk || CSVTK=./csvtk/csvtk/csvtk; true
1616

@@ -20,8 +20,6 @@ md5sum () {
2020
openssl dgst -sha256 $1 | cut -d $' ' -f 2;
2121
}
2222

23-
if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then brew install ;gnu-sed; alias sed=gsed; fi
24-
2523
# ------------------------------------------------------------
2624
# seq
2725
# ------------------------------------------------------------

0 commit comments

Comments
 (0)