forked from citybound/citybound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.61 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
language: node_js
node_js:
- "10"
sudo: required
git:
depth: 9999999
matrix:
include:
- os: linux
dist: trusty
- os: osx
osx_image: xcode9.4
allow_failures:
- os: windows
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r target
- chmod -R a+r cb_browser_ui/target
- chmod -R a+r $HOME/.rustup
- chmod -R a+r $HOME/.cargo
cache:
directories:
- target
- cb_browser_ui/target
- $HOME/.rustup
- $HOME/.cargo
addons:
artifacts:
s3_region: "us-east-1"
debug: true
paths:
- $(ls *-linux.tar.gz | tr "\n" ":")
- $(ls *-osx.zip | tr "\n" ":")
- $(ls *-windows-travis.exe | tr "\n" ":")
target_paths:
- /
install:
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- source $HOME/.cargo/env
- npm run ensure-tooling
script:
- npm run build-browser
- npm run build-server-bundle
- cd target/release/
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mv citybound citybound-$(cat ../../.version) && tar -pczf citybound-$(cat ../../.version)-linux.tar.gz citybound-$(cat ../../.version) && mv citybound-$(cat ../../.version)-linux.tar.gz ../.. ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mv citybound citybound-$(cat ../../.version).command && zip citybound-$(cat ../../.version)-osx.zip citybound-$(cat ../../.version).command && mv citybound-$(cat ../../.version)-osx.zip ../.. ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then mv citybound.exe ../../citybound-$(cat ../../.version)-windows-travis.exe ; fi
- cd ../..
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run lint-check ; fi