]> git.lizzy.rs Git - rust.git/blobdiff - .travis.yml
Apply small parent rule only when there is small offset
[rust.git] / .travis.yml
index 5ece4e0dbe6d3b06d085d416731a659ec642044a..90faaaf17469870415bbbdf670bcd6458f5a1844 100644 (file)
@@ -21,14 +21,14 @@ addons:
 before_script:
 - |
   if [ $TRAVIS_OS_NAME = 'osx' ]; then
-    brew install python3
-    virtualenv env -p python3
-    source env/bin/activate
+    virtualenv env &&
+    source env/bin/activate &&
+    python --version &&
     pip install 'travis-cargo<0.2'
   else
-    pip install 'travis-cargo<0.2' --user
+    pip install 'travis-cargo<0.2' --user &&
+    export PATH="$(python -m site --user-base)/bin:$PATH"
   fi
-- export PATH="$(python -m site --user-base)/bin:$PATH"
 
 script:
 - |