Cleanup travis config

If statements end up looking weird and are relatively unneeded.
This commit is contained in:
Benjamin Hoffmeyer 2018-02-11 10:18:18 -05:00
parent 167fa47e0d
commit 06d3a2a81b

View file

@ -1,37 +1,39 @@
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 && sudo apt-get purge -qq binutils-doc &&
sudo apt-get purge -qq binutils-doc && 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; # - os: osx
fi # before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then # - |
brew update && # brew update &&
brew install nasm pkg-config Caskroom/cask/osxfuse && # brew install nasm pkg-config Caskroom/cask/osxfuse &&
travis_wait 30 brew install redox-os/gcc_cross_compilers/x86_64-elf-gcc; # travis_wait 30 brew install redox-os/gcc_cross_compilers/x86_64-elf-gcc
fi
# 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