2016-07-21 06:41:34 -06:00
|
|
|
sudo: false
|
2015-12-26 21:31:48 -07:00
|
|
|
|
2015-12-27 09:00:45 -07:00
|
|
|
notifications:
|
|
|
|
irc:
|
2016-01-03 22:20:43 -07:00
|
|
|
channels:
|
2015-12-27 09:00:45 -07:00
|
|
|
- "chat.freenode.net#lichess"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
use_notice: true
|
2015-12-27 10:31:37 -07:00
|
|
|
skip_join: true
|
2016-01-27 21:00:30 -07:00
|
|
|
slack:
|
|
|
|
rooms:
|
2017-05-19 04:40:51 -06:00
|
|
|
- secure: "LdcLNNeKKSOlHzX8n2+hqFZw6QqnKBfP+/BFtgEYe4QPb25sKxlxwnf28T7AVkf1F+/OA9KMcL+ZsCcXS6kB/0mI3P49hJfQT9XyUSvfpI81196oiEkCM5I+xDuzi5ejR0Sxt80OUOqw+vHOZYzGVtlfxtTbNxcT94V8j141hwY="
|
2016-01-04 06:54:15 -07:00
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2016-01-31 02:56:10 -07:00
|
|
|
email: false
|
2015-12-27 09:00:45 -07:00
|
|
|
|
2015-12-26 21:31:48 -07:00
|
|
|
env:
|
2017-04-06 11:00:11 -06:00
|
|
|
global:
|
2017-05-19 04:10:17 -06:00
|
|
|
- secure: "VkgJ78marLdG8JQrWV3UhcxXyWmdy6BV3gYLTyXpK2ltPA4vGkFilZDc8hMx2VhYeeTXyvXB+PM4xkB40PUnDlmNXIWQlG7IxKIb/zxwUVS+WcvAzM6yqEV9B/UbZO+Mgp2Hl4/F1lMoIpdQ0tkRvHmfw01L9VDrQs4Otdmd38o=" # GITHUB_API_TOKEN
|
2015-12-26 21:31:48 -07:00
|
|
|
|
2017-04-27 21:34:36 -06:00
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
submodules: false
|
|
|
|
|
2017-05-31 06:52:42 -06:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- l10n_master
|
|
|
|
|
2017-05-19 04:10:17 -06:00
|
|
|
install: ./bin/submodule-setup.sh
|
2017-04-06 11:23:47 -06:00
|
|
|
|
2017-05-19 04:10:17 -06:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
# Build server
|
|
|
|
- stage: test
|
|
|
|
language: scala
|
|
|
|
jdk: oraclejdk8
|
2017-05-20 09:56:27 -06:00
|
|
|
script: sbt test stage
|
2017-05-19 04:10:17 -06:00
|
|
|
after_success:
|
|
|
|
- git log -n 1 --pretty=oneline > commit.txt
|
|
|
|
- tar -zcf "lila-server-${TRAVIS_BRANCH}.tar.gz" target/universal/stage LICENSE COPYING.md README.md commit.txt
|
|
|
|
before_cache:
|
2017-05-19 07:10:54 -06:00
|
|
|
- find $HOME/.ivy2/cache -name 'ivydata-*.properties' -delete
|
|
|
|
- find $HOME/.sbt -name '*.lock' -delete
|
2017-05-19 04:10:17 -06:00
|
|
|
- rm -rf $HOME/.sbt/0.13/dependency/module/dynamic
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.ivy2/cache
|
|
|
|
- $HOME/.sbt
|
2017-05-23 12:02:13 -06:00
|
|
|
addons:
|
|
|
|
artifacts:
|
|
|
|
bucket: lichess.org
|
|
|
|
s3_region: eu-west-1
|
|
|
|
cache_control: public
|
|
|
|
paths: $(ls lila-server-*.tar.gz)
|
|
|
|
target_paths: lila
|
|
|
|
key:
|
|
|
|
secure: "lv+M2bXAjuKfl3ta8PDcljURpmnGjoNnf79dcryvZ6H3bT0FrW3rNKIxXqO4v/daZAuY3o+/nTOjg552ghFDmAqvygA9WF2pLuKd5Q877AtD54tkcr53oYLooBEaQ7nAkJnHl2NM8nii3mvksZ4+1ss7ww535u53sWu+a7PwQwI="
|
|
|
|
secret:
|
|
|
|
secure: "yoErYc4k/g00cP+P2jNZ3v4lAJnEuspE1j7DB9U42leWEGGgyqvKhNJLR5u/JLpxz2+UX6lmjlN0D3SLT4SVLpdacNvRdjRNVpazWpkOsxmKwiQRqjAQl/aoydW6JqUrFoIyH+HzSRdJdxLeXerEJdsTMXHRfHiBPaXWZzHnxY0="
|
2017-05-16 13:36:32 -06:00
|
|
|
|
2017-05-19 04:10:17 -06:00
|
|
|
# Build assets
|
|
|
|
- stage: test
|
|
|
|
language: node_js
|
|
|
|
node_js: "4"
|
2017-05-19 12:36:39 -06:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- parallel
|
2017-05-31 04:48:09 -06:00
|
|
|
before_install:
|
|
|
|
- npm install -g yarn@0.25.3
|
|
|
|
- yarn global add gulp-cli
|
2017-05-19 04:10:17 -06:00
|
|
|
script: ./ui/build prod
|
|
|
|
after_success:
|
|
|
|
- git log -n 1 --pretty=oneline > commit.txt
|
|
|
|
- tar -zcf "lila-assets-${TRAVIS_BRANCH}.tar.gz" public LICENSE COPYING.md README.md commit.txt
|
2017-05-20 04:25:52 -06:00
|
|
|
before_cache:
|
|
|
|
- yarn cache dir
|
|
|
|
- rm -rf $HOME/.cache/yarn/v1/npm-{types,common,chess,game,tree,ceval}-*
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/yarn
|
2017-05-23 12:02:13 -06:00
|
|
|
addons:
|
|
|
|
artifacts:
|
|
|
|
bucket: lichess.org
|
|
|
|
s3_region: eu-west-1
|
|
|
|
cache_control: public
|
|
|
|
paths: $(ls lila-assets-*.tar.gz)
|
|
|
|
target_paths: lila
|
|
|
|
key:
|
|
|
|
secure: "lv+M2bXAjuKfl3ta8PDcljURpmnGjoNnf79dcryvZ6H3bT0FrW3rNKIxXqO4v/daZAuY3o+/nTOjg552ghFDmAqvygA9WF2pLuKd5Q877AtD54tkcr53oYLooBEaQ7nAkJnHl2NM8nii3mvksZ4+1ss7ww535u53sWu+a7PwQwI="
|
|
|
|
secret:
|
|
|
|
secure: "yoErYc4k/g00cP+P2jNZ3v4lAJnEuspE1j7DB9U42leWEGGgyqvKhNJLR5u/JLpxz2+UX6lmjlN0D3SLT4SVLpdacNvRdjRNVpazWpkOsxmKwiQRqjAQl/aoydW6JqUrFoIyH+HzSRdJdxLeXerEJdsTMXHRfHiBPaXWZzHnxY0="
|