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
2018-01-17 12:08:36 -07:00
language: generic
2018-01-05 22:04:01 -07:00
cache:
timeout: 1000
2016-05-14 10:53:15 -06:00
2018-01-05 22:04:01 -07:00
git:
depth: 1
2016-05-14 10:53:15 -06:00
2018-01-05 22:04:01 -07:00
os:
- linux
- osx
sudo: required
2016-05-14 10:53:15 -06:00
2015-02-08 19:10:46 -07:00
env:
global:
2018-01-05 22:04:01 -07:00
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
2018-01-05 22:04:01 -07:00
- $HOME/.opam
2015-04-29 02:17:37 -06:00
before_install:
2018-01-05 22:04:01 -07:00
# 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
2018-01-05 22:04:01 -07:00
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
2018-01-05 22:04:01 -07:00
echo Error:TRAVIS_OS_NAME && exit 1;
fi
2018-01-05 22:04:01 -07:00
# Ruby language support
- bundle install
2016-08-24 03:44:30 -06:00
# R
2018-01-05 22:04:01 -07:00
- Rscript --version
# PHP
2018-01-05 22:04:01 -07:00
- composer install
# CoffeeScript
- npm install coffee-formatter
2016-04-19 15:15:36 -06:00
# OCaml
2018-02-19 10:54:05 -07: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