atom-beautify/.travis.yml

91 lines
2.4 KiB
YAML
Raw Normal View History

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a7cbe520877895f3154a
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: true # default: false
email:
on_success: never
on_failure: change
script: sh build-package.sh
language: generic
2016-05-14 10:53:15 -06:00
cache:
timeout: 1000
2016-05-14 10:53:15 -06:00
git:
depth: 1
os:
- linux
- osx
sudo: required
2016-05-14 10:53:15 -06:00
2015-02-08 19:10:46 -07:00
env:
global:
matrix:
- ATOM_SCRIPT_NAME=atom-beta APM_SCRIPT_NAME=apm-beta
- ATOM_SCRIPT_NAME=atom APM_SCRIPT_NAME=apm
2015-02-08 19:10:46 -07:00
2016-05-14 10:53:15 -06:00
addons:
apt:
sources:
- sourceline: 'deb http://dist.crystal-lang.org/apt crystal main'
- sourceline: 'deb http://ppa.launchpad.net/avsm/ppa/ubuntu trusty main'
- sourceline: 'deb http://ppa.launchpad.net/ubuntu-lxc/lxd-stable/ubuntu trusty main'
2016-05-14 10:53:15 -06:00
packages:
- build-essential
- git
- libgnome-keyring-dev
- fakeroot
- crystal
- camlp4
- php5-cli
- golang
2016-05-14 10:53:15 -06:00
2015-04-29 02:17:37 -06:00
cache:
pip: true
bundler: true
directories:
- vendor/bundle # gems are installed here, https://docs.travis-ci.com/user/languages/ruby/#Dependency-Management
- node_modules
- $HOME/.atom
- $HOME/.opam
2015-04-29 02:17:37 -06:00
before_install:
# linux: Install Nix, Nix packages, upgrade pip, and install python packages
# osx: Update Homebrew, remove conflicting cask, brew bundle, symlink elm-format,
# upgrade pip, and install python packages
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl https://nixos.org/nix/install | sh &&
. ~/.nix-profile/etc/profile.d/nix.sh &&
nix-env -i uncrustify R elm-format terraform atom atom-beta opam &&
pip install --upgrade pip &&
pip install --user -r requirements.txt;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update && brew cask zap oclint && brew bundle &&
ln -s /usr/local/bin/elm-format-0.17 /usr/local/bin/elm-format &&
pip2 install --upgrade pip &&
pip2 install -r requirements.txt;
else
echo Error:TRAVIS_OS_NAME && exit 1;
fi
# Ruby language support
- bundle install
2016-08-24 03:44:30 -06:00
# R
- Rscript --version
# PHP
- composer install
# CoffeeScript
- npm install coffee-formatter
2016-04-19 15:15:36 -06:00
# OCaml
2016-04-20 00:39:00 -06:00
- opam init --auto-setup
# Init environment variables for opam
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
eval `opam config env`;
fi
2016-04-20 00:52:23 -06:00
- opam install --yes ocp-indent