Skip to content

Commit cd6881f

Browse files
committed
Cleanup + initialize micromamba by sourcing bashrc
1 parent a79e253 commit cd6881f

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.travis.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
# Avoiding duplicate branch-pr triggers:
77
# https://github.com/travis-ci/travis-ci/issues/1147#issuecomment-160820262
88
dist: xenial
9-
branches:
10-
only:
11-
- master
9+
sudo: false # use container based build
1210
language: python
11+
1312
notifications:
1413
email: false
1514

15+
branches:
16+
only:
17+
- master
18+
1619
python:
1720
- "3.7"
1821

@@ -26,20 +29,20 @@ before_install:
2629
fi
2730
- curl micro.mamba.pm/install.sh | bash
2831
- export PATH="$HOME/micromamba/bin:$PATH"
29-
- hash -r
30-
- micromamba shell init -s bash -p ~/micromamba
3132
- micromamba config set always_yes true
3233
- micromamba config set changeps1 false
3334
- micromamba config set show_channel_urls true
35+
- micromamba shell init --shell=bash --prefix=~/micromamba
3436

3537
install:
38+
- . ~/.bashrc
39+
- which python
40+
- which micromamba
3641
- micromamba env create --file ci/environment.yml
3742
- micromamba activate proplot-dev
38-
- micromamba list
39-
- which micromamba
40-
- which python
4143
- python setup.py sdist bdist_wheel
4244
- pip install --user ./dist/*.whl
45+
- micromamba list
4346

4447
script:
4548
- ci/run-linter.sh

0 commit comments

Comments
 (0)