forked from fritzing/fritzing-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
140 lines (121 loc) · 6.68 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
language: minimal
stages:
- name: fast_check
- name: build_and_pack
# Avoid duplicate builds for pull requests
if: (type = push AND branch IN (develop, master)) OR (type = pull_request AND repo = "fritzing/fritzing-app")
- name: deploy_to_github
# Only deploy from develop or master branch
if: type = push AND branch IN (develop, master) AND repo = "fritzing/fritzing-app"
env:
global:
- secure: "R2aZwSFoavU551FUqzr/RCBYPd8eQkKTKOBMGYuZ0yFAr5yK958dwZtQg9rZ7PSpPIJoGIGS3NL7X5UBTLXbWCrgiOla3MCilqbk3r4+HirrkVYQir9C+yPp1z+ZE4jgAFKGz6W9Vc+XFN0Kr1PmyyoTQKe3v6rdfpwOdIzRThY2zO1fSYosirYhRlk/2wfptaW51DF6PcEwD/fR80OKEl+PmO3PFCG68LJmZ8W8Par+8yiCctz7ru+eAZCmEjx1AIrfXy2NWQgoKKdRL+RQKSsXvfioFJy4qa2tpA1QC0BfDLP09oIVXY5Bx4MznaiL+xxCR7gtEddPXEdLo+6RZxq0ujb8WdKhVD+URXoeS2Qrd3xty+TkrNAXSWt0lx17klHUFgRrs7jkaZJj+uo8LcKCt/XYS3QFxrMhoNMN8GCcdplVE2aUmm2QoO2HLJj8IGUm7SCQXbGC7BHLwGTVj/GeKjadQaDYsITNPMk0bg8HJ3q0v/R7bUxuz66vStpw7+Vl2AtVoDkpqRfwB8Ax4lc3mQGwybdIUBmQsfmbVD87dyNfWFjJCkTLnLEWn+erkqBztZ1F0ttPSBBWRaLfL0dWks766ofe8KPvOsh9FimWNo89sWc4Q2kRWBmI1c7SaPwpkhOZB5DeRzSxSZj3j4y5JFHaph7CHx07as4mrtg="
- secure: "H6j8t7yrolYB7DzoEZ7CiXsVhqPos+z7pMmUGEPaB9/RD0nlple2Zc5Y7tap/giXoIUX7Qm3vBqmWOFV/GNYHjx3B4BjdqBeH5aVrhbHdQYXXGp2PKqKVWZFQ4IkX0J/DtPQHyauBxThbqpoZI1ItUoejuM1nWc5oI1y/usGzzUNAbqCaoY7DlbYfCVaYTWNXf3s493VptQI2X+2KclAIZ3tRUaZTwEX/9LeIMmtCGlphxLZmIXZDBlXjWTzCRS4hNmVyk8ZjxAx5MWrnyxqsMdjinqLjUEXH1VncSDJ1cbmKesAq4dysxEJRR+wOOz3i596PrDfD8E1jPDDJB35ohU7PvmLgGhX2Fk7Gm55NQVoV55dlQcrFPx1cBg/ysQvLCgiD9q9tvtS2w931JQEGFvTuaHu+K/RI7KUb77idf5tCJ54TJeXpULZCqWR3K4QSqRjjZ8OEXLYEwDmZar2TWiPxD53dXVPHb5rS0WMAt1kfGK/DgyikUXb5tRL9vH8TBls2bVz9ig/wrQZE8dWQKiLLIxctoFVpRFjRLSGPMFVbG/x/pa6zghPY1g8y7w36LuIAXJEM+W/P3K/i0Ac/AU9y1g20pVf1WR1GE10xLWlev6KZrHnNTzaCtDvWlqB5btQukVvViWKmDno2vbebu/F7533FdhIiIQKgoZXK2U="
jobs:
include:
- stage: fast_check
name: Shell linter
language: shell
script:
- bash -c 'shopt -s globstar; shellcheck -e SC1117 **/*.sh'
- stage: fast_check
name: Fast build
os: linux
language: minimal
services:
- docker
before_install:
- docker pull fritzing/build:bionic
script:
- docker/build-linux.sh
after_success:
- tools/aws_tasks.sh synchronize_up
- stage: build_and_pack
name: Bionic
os: linux
language: minimal
services:
- docker
before_install:
- tools/aws_tasks.sh setup
- docker pull fritzing/build:bionic
script:
- docker/release-linux.sh bionic $TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.bionic
- tools/aws_tasks.sh store_with_md5 . fritzing-$TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.bionic.linux.AMD64.tar.bz2
after_success:
- tools/aws_tasks.sh synchronize_up
- stage: build_and_pack
name: Fedora
os: linux
language: minimal
services:
- docker
before_install:
- tools/aws_tasks.sh setup
- docker pull fritzing/build:fedora-30
script:
- docker/release-linux.sh fedora-30 $TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.fedora-30
- tools/aws_tasks.sh store_with_md5 . fritzing-$TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.fedora-30.linux.AMD64.tar.bz2
after_success:
- tools/aws_tasks.sh synchronize_up
- stage: build_and_pack
os: osx
language: cpp
osx_image: xcode10.2
cache:
directories:
../libgit2/build
addons:
homebrew:
packages:
- qt5
update: false
before_install:
- mkdir -p ../libgit2/build
- wget -q -O - https://github.com/libgit2/libgit2/archive/v0.28.1.tar.gz | tar xz && mv libgit2-0.28.1/* ../libgit2/
- (cd ../libgit2/build && cmake -D BUILD_SHARED_LIBS=OFF .. && cmake --build .)
- (cd .. && wget -q -O - https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj)
- tools/aws_tasks.sh setup
script:
- ls /usr/local/opt
- tools/deploy_fritzing_mac.sh
- mv ../deploy-app/Fritzing.dmg fritzing-$TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.mojave.10.2.dmg
- tools/aws_tasks.sh store_with_md5 . fritzing-$TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.mojave.10.2.dmg
after_success:
- tools/aws_tasks.sh synchronize_up
- stage: build_and_pack
os: windows
language: cpp
before_install:
- curl -L http://download.qt-project.org/official_releases/online_installers/qt-unified-windows-x86-online.exe --output qt-installer.exe
- ./qt-installer.exe --script ./tools/qt_installer_noninteractive.qs
- curl -fsSL https://github.com/libgit2/libgit2/archive/v0.28.1.zip -o libgit2.zip && 7z x libgit2.zip && mv libgit2-0.28.1 ../libgit2
- (mkdir ../libgit2/build64 && cd ../libgit2/build64 && cmake -G "Visual Studio 15 2017 Win64" .. && cmake --build . --config Release)
- (cd .. && curl -L https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.bz2 | tar xj)
- tools/aws_tasks.sh setup
script:
- tools/build-windows.bat "$TRAVIS_COMMIT"-$TRAVIS_BRANCH-"$TRAVIS_BUILD_NUMBER"
- tools/aws_tasks.sh store_with_md5 $TRAVIS_BUILD_DIR/../release64 fritzing-$TRAVIS_COMMIT-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER.windows.64.zip
after_success:
- tools/aws_tasks.sh synchronize_up
- stage: deploy_to_github
before_install:
- tools/aws_tasks.sh setup
- tools/aws_tasks.sh synchronize_down
before_deploy:
- git config --local user.name "Travis C.D."
- git config --local user.email "[email protected]"
- git tag CD-$TRAVIS_BUILD_NUMBER
deploy:
provider: releases
draft: true
api_key:
secure: "ndzX3gAwth3jsLQobNvYZKERGsP6OjsLNIj/CiIw1eGzJn9Di6bB0aksIBiRU8Sp5zGdMUjxiQk/qgZg/vnce+oUiQM8c1PFgGh1b04W57M8NnnGYsfMa9b8kgEzlmlpP4qSD6SlG5FI29JuOAQqQWHD3ywnsy9tiu5dn84k735gLfTnuIzFmQgvl5zil8G2kMSLMY0EIC8bgWbn8JRsEfBqF7FvbJOmmsww/ADRJx2z6iOhOmTu23qZOIq6GNG8MTyp0jW6yZsNP0Nyum966pqsu6cwyHVuXA4iIRBgE1022PoQfN9F7cLiuskl33xbl5FoKQS7iw7W3wUH0vmyd3XuiBBpoDz2A2iPghMS/7Z31T5rCWgWb9SDDelScz3y9ESlabmmOBVEx633eWtrXG5poiMLJshLyR3d+uCm5C5fIyPn++CxwMkBR/anWMJBlCYX8CYSLBJd5Kz+J/vvc6XTgm1D4+oUYBcrhRs3fiRlKY72RHLy8V3b9ji+oIpnz5ZqguSS1WpF74T+zESyb/dtL0dfAewxmQg1XdOzcmRgWP80Uc3Mxb3laImrBJLSPXi0eR0V5Y0n6RVub3FQOhzNx5+s0jaGbzYJJScKC1eOLbupdSuKEUOG5n4I8IsHTzr3EIzhMyI7vSK0w4bKVdSxLYuVcXV8Bf9Kc+7yZvg="
file_glob: true
file: $HOME/$TRAVIS_BUILD_NUMBER/*
skip_cleanup: true
# We already check the branch in the stage condition
on:
all_branches: true
after_deploy:
- tools/aws_tasks.sh cleanup