atom-beautify/.travis.yml

89 lines
2.3 KiB
YAML
Raw Permalink 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
2017-11-15 23:22:47 -07:00
- aspcud
- 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
2018-03-09 22:16:05 -07:00
- echo $TRAVIS_COMMIT_MESSAGE
2018-03-09 22:19:06 -07:00
- export TRAVIS_COMMIT_MESSAGE=""
2018-03-09 22:16:05 -07:00
- echo $TRAVIS_COMMIT_MESSAGE
- 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 &&
2018-05-15 13:29:33 -06:00
nix-env -i uncrustify R elm-format terraform atom atom-beta &&
2018-01-05 22:04:01 -07:00
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 -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
2016-04-19 15:15:36 -06:00
# OCaml
# - opam init --auto-setup
# Init environment variables for opam
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# eval `opam config env`;
# fi
# - opam install --yes ocp-indent