Cleanup travis config
If statements end up looking weird and are relatively unneeded.
This commit is contained in:
parent
167fa47e0d
commit
06d3a2a81b
46
.travis.yml
46
.travis.yml
|
@ -1,17 +1,18 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
language: rust
|
language: rust
|
||||||
|
cache: cargo
|
||||||
rust:
|
rust:
|
||||||
- nightly
|
- nightly
|
||||||
cache: cargo
|
|
||||||
os:
|
# OSX has been disabled for the moment
|
||||||
- linux
|
matrix:
|
||||||
#- osx
|
#allow_failures:
|
||||||
#matrix:
|
# - os: osx
|
||||||
# allow_failures:
|
include:
|
||||||
# - os: osx
|
- os: linux
|
||||||
dist: trusty
|
before_install:
|
||||||
before_install:
|
- |
|
||||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
|
|
||||||
sudo apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F &&
|
sudo apt-key adv -q --batch --yes --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F &&
|
||||||
sudo add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
|
sudo add-apt-repository 'deb https://static.redox-os.org/toolchain/apt ./' &&
|
||||||
sudo apt-get update -qq &&
|
sudo apt-get update -qq &&
|
||||||
|
@ -19,19 +20,20 @@ before_install:
|
||||||
sudo apt-get install -qq nasm pkg-config fuse libfuse-dev genisoimage syslinux realpath x86-64-unknown-redox-gcc &&
|
sudo apt-get install -qq nasm pkg-config fuse libfuse-dev genisoimage syslinux realpath x86-64-unknown-redox-gcc &&
|
||||||
sudo modprobe fuse &&
|
sudo modprobe fuse &&
|
||||||
sudo chmod 666 /dev/fuse &&
|
sudo chmod 666 /dev/fuse &&
|
||||||
sudo chown root:$USER /etc/fuse.conf;
|
sudo chown root:$USER /etc/fuse.conf
|
||||||
fi
|
# - os: osx
|
||||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
# before_install:
|
||||||
brew update &&
|
# - |
|
||||||
brew install nasm pkg-config Caskroom/cask/osxfuse &&
|
# brew update &&
|
||||||
travis_wait 30 brew install redox-os/gcc_cross_compilers/x86_64-elf-gcc;
|
# brew install nasm pkg-config Caskroom/cask/osxfuse &&
|
||||||
fi
|
# travis_wait 30 brew install redox-os/gcc_cross_compilers/x86_64-elf-gcc
|
||||||
|
|
||||||
|
# before_script runs after before_install
|
||||||
|
before_script:
|
||||||
- cd cookbook && ./setup.sh && cd ..
|
- cd cookbook && ./setup.sh && cd ..
|
||||||
script:
|
script:
|
||||||
- make clean && make travis
|
- make clean && make travis
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
webhooks: http://37.139.9.28:54863/travis
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
@ -43,3 +45,7 @@ deploy:
|
||||||
tags: true
|
tags: true
|
||||||
condition: $TRAVIS_OS_NAME = linux
|
condition: $TRAVIS_OS_NAME = linux
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
webhooks: http://37.139.9.28:54863/travis
|
||||||
|
|
Loading…
Reference in a new issue