-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
executable file
·93 lines (84 loc) · 4.46 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
92
93
language: node_js
node_js:
- "v9.5.0"
os:
- linux
- osx
matrix:
allow_failures:
- os: osx
addons:
apt:
packages:
- graphviz
sudo: true
dist: trusty
branches:
only:
- master
- s3-integrate
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install yarn --without-node; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip2 install --upgrade pip setuptools wheel; fi
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then curl -O https://bootstrap.pypa.io/get-pip.py; fi
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then python3 get-pip.py --user; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew upgrade libyaml; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then sudo easy_install setuptools; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then pip2 install -U PyYAML; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip2 install awscli --ignore-installed six; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip2 --version; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libxkbfile-dev; fi
install:
- npm i -g [email protected] # this should be deleted once 5.7.X is out of "pre-release"
- npm ci # instead of default npm install
- npm i node-sass
- npm install -g @angular/[email protected]
script:
- ng build --prod --aot=false
- cd dist
- npm i
- npm i -g [email protected]
- npm install -g electron-rebuild
- electron-rebuild -v 1.8.2
- electron-builder && cd ..
- cd release
- ls -l
after_success:
# - Upload here
#Linux only Upload to s3
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then pip install awscli --upgrade --user; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then which python; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ls -al /usr/local/bin/python; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export PATH=~/.local/bin:$PATH; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then source ~/.bash_profile; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 cp *.AppImage s3://ana-content/cdn/dist/agent-panel/linux-ia32/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 cp *.AppImage s3://ana-content/cdn/dist/agent-panel/linux-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 cp latest-linux.yml s3://ana-content/cdn/dist/agent-panel/linux-ia32/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 cp latest-linux.yml s3://ana-content/cdn/dist/agent-panel/linux-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 ls s3://ana-content/cdn/dist/agent-panel/linux-ia32/ --human-readable --summarize; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then aws s3 ls s3://ana-content/cdn/dist/agent-panel/linux-x64/ --human-readable --summarize; fi
# Mac only Upload to s3
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws --version; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then which python; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ls -al /usr/local/bin/python; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH=~/.local/bin:$PATH; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then source ~/.bash_profile; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 cp *.dmg s3://ana-content/cdn/dist/agent-panel/mac-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 cp *.dmg.blockmap s3://ana-content/cdn/dist/agent-panel/mac-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 cp *.zip s3://ana-content/cdn/dist/agent-panel/mac-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 cp latest-mac.json s3://ana-content/cdn/dist/agent-panel/mac-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 cp latest-mac.yml s3://ana-content/cdn/dist/agent-panel/mac-x64/ --acl public-read; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then aws s3 ls s3://ana-content/cdn/dist/agent-panel/mac-x64/ --human-readable --summarize; fi
notifications:
email:
slack:
on_success: always
on_failure: always