forked from lichess-org/lila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (84 loc) · 3.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
sudo: false
notifications:
irc:
channels:
- "chat.freenode.net#lichess"
on_success: change
on_failure: always
use_notice: true
skip_join: true
slack:
rooms:
- secure: "LdcLNNeKKSOlHzX8n2+hqFZw6QqnKBfP+/BFtgEYe4QPb25sKxlxwnf28T7AVkf1F+/OA9KMcL+ZsCcXS6kB/0mI3P49hJfQT9XyUSvfpI81196oiEkCM5I+xDuzi5ejR0Sxt80OUOqw+vHOZYzGVtlfxtTbNxcT94V8j141hwY="
on_success: change
on_failure: always
email: false
env:
global:
- secure: "VkgJ78marLdG8JQrWV3UhcxXyWmdy6BV3gYLTyXpK2ltPA4vGkFilZDc8hMx2VhYeeTXyvXB+PM4xkB40PUnDlmNXIWQlG7IxKIb/zxwUVS+WcvAzM6yqEV9B/UbZO+Mgp2Hl4/F1lMoIpdQ0tkRvHmfw01L9VDrQs4Otdmd38o=" # GITHUB_API_TOKEN
branches:
except:
- l10n_master
git:
depth: 3
submodules: false
install: ./bin/submodule-setup.sh
jobs:
include:
# Build server
- stage: test
language: scala
jdk: openjdk8
before_install:
- echo "autoformat=false" > $HOME/.scalariform.conf
script: sbt test:compile test stage
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:
- find $HOME/.ivy2/cache -name 'ivydata-*.properties' -delete
- find $HOME/.sbt -name '*.lock' -delete
- rm -rf $HOME/.sbt/0.13/dependency/module/dynamic
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
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="
# Build assets
- stage: test
language: node_js
node_js: "4"
before_install:
- yarn --version
- yarn global add gulp-cli
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
cache:
directories:
- $HOME/.cache/yarn
addons:
apt:
packages:
- parallel
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="