Skip to content

Commit ac6b44c

Browse files
Rohan's fixes
1 parent 7e8b674 commit ac6b44c

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.travis.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ branches:
99

1010
## Documentation: http://docs.travis-ci.com/user/languages/julia/
1111
language: julia
12-
sudo: false
12+
sudo: true
1313
dist: trusty
1414
os:
1515
- linux
@@ -23,26 +23,21 @@ notifications:
2323

2424
env:
2525
global:
26-
- PYTHON=conda
26+
- PYTHON=python3
2727

2828
before_install:
29-
- |
30-
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
31-
julia -e 'using Pkg; Pkg.add("Conda")'
32-
julia -e 'using Conda; Conda.add("scikit-learn")'
33-
julia -e 'using Pkg; Pkg.build("PyCall"); Pkg.update()'
34-
fi
29+
- julia -e 'using Pkg; Pkg.add("Conda")'
30+
- sudo apt update && sudo apt install -y python3-pip
31+
- julia -e 'using Conda; Conda.add("scikit-learn")'
32+
- julia -e 'using Pkg; Pkg.add("PyCall")'
3533

3634
before_script:
3735
- |
3836
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
3937
brew update
4038
brew upgrade cmake
4139
fi
42-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
43-
julia -e 'using Pkg; Pkg.add("Conda")'
44-
julia -e 'using Pkg; Pkg.build("PyCall"); Pkg.update()'
45-
fi
40+
- julia -e 'using Pkg; Pkg.build("PyCall"); Pkg.update()'
4641

4742
after_success:
4843
# push coverage results to Codecov

0 commit comments

Comments
 (0)