-
Notifications
You must be signed in to change notification settings - Fork 46
/
.travis.yml
53 lines (53 loc) · 2.32 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
matrix:
include:
- language: node_js
services:
- docker
node_js:
- "10"
dist: trusty
before_install:
- sudo apt-get install --allow-unauthenticated -y apt-transport-https
# Wine
# - wget -nc https://dl.winehq.org/wine-builds/Release.key
# - sudo apt-key add Release.key
# - sudo apt-add-repository -y https://dl.winehq.org/wine-builds/ubuntu/
# Mono
# - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
# - echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
# Actually install packages (we no longer need 'winehq-stable mono-complete' since we have docker)
- sudo apt-get update
- sudo apt-get install --allow-unauthenticated -y --install-recommends realpath openjdk-8-jdk gcc-multilib g++-multilib rpm bsdtar jq rsync
# Mono again
# - wget "http://dl.winehq.org/wine/wine-mono/4.7.2/wine-mono-4.7.2.msi" -O /tmp/mono.msi
# - wine msiexec /i /tmp/mono.msi
# Docker
script: bash -c "CI=false scripts/build.sh --linux" && bash -c "cd bootui/tachiweb-bootstrap && bash ../../scripts/buildWindowsInDocker.sh"
before_deploy:
- bash -c "cd bootui/tachiweb-bootstrap/dist/ && zip -r TachiWeb-win32-portable.zip win-ia32-unpacked"
- bash -c "cd bootui/tachiweb-bootstrap/dist/ && zip -r TachiWeb-win64-portable.zip win-unpacked"
- bash -c 'echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc'
- bash -c 'NODE_ENV="development" scripts/updateApiClients.sh'
deploy:
skip_cleanup: true
provider: script
script: bash scripts/travisDeploy.sh
on:
all_branches: true
- os: osx
osx_image: xcode9.3
language: node_js
node_js:
- "10"
before_install:
- brew update
- brew outdated coreutils || brew upgrade coreutils
- brew outdated maven || brew upgrade maven
- brew install yarn --ignore-dependencies
script: bash -c "CI=false scripts/build.sh"
deploy:
skip_cleanup: true
provider: script
script: bash scripts/travisDeploy.sh
on:
all_branches: true