2014-06-15 21:34:02 -06:00
|
|
|
notifications:
|
2014-12-28 13:33:13 -07:00
|
|
|
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
|
2014-06-15 21:34:02 -06:00
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: change
|
|
|
|
|
2014-12-28 11:30:36 -07:00
|
|
|
script: sh build-package.sh
|
2014-06-15 21:41:14 -06:00
|
|
|
|
2016-05-14 10:53:15 -06:00
|
|
|
git:
|
|
|
|
depth: 10
|
|
|
|
|
2016-05-20 02:38:40 -06:00
|
|
|
php:
|
|
|
|
- '5.6'
|
|
|
|
python:
|
|
|
|
- '2.7'
|
|
|
|
go:
|
|
|
|
- release
|
2016-05-14 10:53:15 -06:00
|
|
|
|
2016-05-20 02:38:40 -06:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-06-11 13:40:57 -06:00
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
env:
|
|
|
|
- ATOM_CHANNEL=stable
|
2017-04-19 20:16:08 -06:00
|
|
|
# - os: linux
|
|
|
|
# dist: trusty
|
|
|
|
# sudo: require
|
|
|
|
# env:
|
|
|
|
# - ATOM_CHANNEL=stable
|
|
|
|
# - os: linux
|
|
|
|
# dist: trusty
|
|
|
|
# sudo: require
|
|
|
|
# env:
|
|
|
|
# - ATOM_CHANNEL=beta
|
2016-05-20 02:38:40 -06:00
|
|
|
- os: osx
|
|
|
|
env:
|
|
|
|
- ATOM_CHANNEL=stable
|
|
|
|
- os: osx
|
|
|
|
env:
|
|
|
|
- ATOM_CHANNEL=beta
|
2016-05-14 10:53:15 -06:00
|
|
|
|
2015-02-08 19:10:46 -07:00
|
|
|
env:
|
2016-02-23 00:43:54 -07:00
|
|
|
global:
|
2016-05-14 08:34:57 -06:00
|
|
|
- APM_TEST_PACKAGES="language-marko language-html-swig language-svg language-d mavensmate-atom language-lua"
|
2016-05-20 02:38:40 -06:00
|
|
|
- PATH="/home/travis/gopath/bin:$HOME/.linuxbrew/bin:$PATH"
|
2015-02-08 19:10:46 -07:00
|
|
|
|
2016-05-14 10:53:15 -06:00
|
|
|
addons:
|
|
|
|
apt:
|
2016-05-20 02:38:40 -06:00
|
|
|
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
|
2016-05-20 02:38:40 -06:00
|
|
|
- crystal
|
|
|
|
- ocaml
|
|
|
|
- camlp4
|
|
|
|
- opam
|
|
|
|
- php5-cli
|
|
|
|
- golang
|
2016-05-14 10:53:15 -06:00
|
|
|
|
2015-04-29 02:17:37 -06:00
|
|
|
cache:
|
2016-05-20 02:38:40 -06:00
|
|
|
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/.stack
|
2015-04-29 02:17:37 -06:00
|
|
|
|
2014-06-15 21:41:14 -06:00
|
|
|
before_install:
|
2016-05-20 02:38:40 -06:00
|
|
|
# Install Homebrew on Linux
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
git clone --depth=1 https://github.com/Linuxbrew/brew.git ~/.linuxbrew || true;
|
|
|
|
fi
|
2014-12-28 00:41:53 -07:00
|
|
|
# Update Homebrew
|
2017-06-16 17:54:55 -06:00
|
|
|
# - brew update
|
2015-03-29 17:47:39 -06:00
|
|
|
- brew tap homebrew/dupes
|
|
|
|
- brew tap homebrew/versions
|
2014-12-28 00:41:53 -07:00
|
|
|
# Ruby language support
|
2015-05-02 17:53:53 -06:00
|
|
|
# - gem install ruby-beautify --verbose
|
|
|
|
- gem install rubocop
|
2015-05-03 23:32:25 -06:00
|
|
|
- gem install htmlbeautifier
|
2015-08-05 09:16:40 -06:00
|
|
|
- gem install puppet-lint
|
2016-08-17 23:22:36 -06:00
|
|
|
# Sass language support
|
2017-06-16 17:54:55 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
gem install sass;
|
|
|
|
else
|
|
|
|
docker pull unibeautify/sass-convert
|
|
|
|
fi
|
2014-12-28 00:41:53 -07:00
|
|
|
# Python language support
|
2016-05-20 02:38:40 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo chmod 777 -R /opt/python; fi
|
|
|
|
- pip install --upgrade pip
|
2014-06-15 21:41:14 -06:00
|
|
|
- pip install --upgrade autopep8
|
2015-11-19 19:25:22 -07:00
|
|
|
- pip install --upgrade isort
|
2014-12-28 13:20:01 -07:00
|
|
|
# SQL language support
|
|
|
|
- pip install --upgrade sqlparse
|
2014-12-28 00:41:53 -07:00
|
|
|
# Java, C, C++, C#, Objective-C, D, Pawn, Vala
|
2017-06-16 17:54:55 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install uncrustify
|
|
|
|
else
|
|
|
|
docker pull unibeautify/uncrustify
|
|
|
|
fi
|
2016-08-24 03:44:30 -06:00
|
|
|
# R
|
|
|
|
- brew tap homebrew/science
|
2017-06-11 20:26:37 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install r;
|
|
|
|
rscript --version;
|
2017-06-11 21:12:53 -06:00
|
|
|
else
|
|
|
|
docker pull unibeautify/rscript;
|
2017-06-11 20:26:37 -06:00
|
|
|
fi
|
2014-12-28 00:41:53 -07:00
|
|
|
# PHP
|
2015-05-03 09:50:45 -06:00
|
|
|
- brew tap homebrew/homebrew-php
|
2016-05-20 02:38:40 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install php56 || true;
|
|
|
|
brew gist-logs php56 || true;
|
|
|
|
echo -e "\n[Phar]\nphar.readonly = Off\n" >> /usr/local/etc/php/5.6/php.ini;
|
|
|
|
brew install php-cs-fixer || true;
|
|
|
|
brew gist-logs php-cs-fixer || true;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer;
|
|
|
|
chmod a+x php-cs-fixer;
|
|
|
|
mv php-cs-fixer $HOME/.linuxbrew/bin/php-cs-fixer;
|
|
|
|
fi
|
2014-12-28 15:59:15 -07:00
|
|
|
# CoffeeScript
|
|
|
|
- npm install coffee-formatter
|
2015-10-29 13:41:57 -06:00
|
|
|
# Haskell
|
2016-03-03 16:43:45 -07:00
|
|
|
# - brew install haskell-stack
|
|
|
|
# - stack setup
|
|
|
|
# - stack install stylish-haskell
|
2015-12-10 06:42:08 -07:00
|
|
|
# Elm
|
2016-05-20 02:38:40 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2017-06-04 18:55:45 -06:00
|
|
|
curl -L -o /tmp/elm-format.tgz
|
|
|
|
https://github.com/avh4/elm-format/releases/download/0.7.0-exp/elm-format-0.17-0.7.0-exp-mac-x64.tgz;
|
2016-05-20 02:38:40 -06:00
|
|
|
tar xvzf /tmp/elm-format.tgz -C /usr/local/bin;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
2017-06-04 18:55:45 -06:00
|
|
|
curl -L -o /tmp/elm-format.tgz https://github.com/avh4/elm-format/releases/download/0.7.0-exp/elm-format-0.17-0.7.0-exp-linux-x64.tgz;
|
2016-05-20 02:38:40 -06:00
|
|
|
tar xvzf /tmp/elm-format.tgz -C $HOME/.linuxbrew/bin;
|
|
|
|
fi
|
2016-04-19 15:15:36 -06:00
|
|
|
# OCaml
|
2016-05-20 02:38:40 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install ocaml;
|
|
|
|
brew install opam;
|
|
|
|
fi
|
2016-04-20 00:39:00 -06:00
|
|
|
- opam init --auto-setup
|
2016-04-20 00:52:23 -06:00
|
|
|
- opam install --yes ocp-indent
|
2016-04-08 09:36:13 -06:00
|
|
|
# Crystal
|
2016-05-20 02:38:40 -06:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install crystal-lang; fi
|
2016-09-25 10:06:16 -06:00
|
|
|
# Bash
|
|
|
|
- pip install beautysh
|