forked from balena-io/etcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: create installers (but don't publish) on every pull request (b…
…alena-io#1365) This allows us to catch changes that break our installer builds before merging the problematic changes. As a way to simplify the CI configuration files, this commit introduces an `installers-all` Makefile target that builds all installers. This commit also replaces all the `cp -rf` calls with `cp -RLf` in Makefile to avoid some weird hard link Appveyor issues. See: balena-io#1078 See: balena-io#1354 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
- Loading branch information
Juan Cruz Viotti
authored
May 18, 2017
1 parent
a74e6b5
commit 30ed217
Showing
6 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@echo off | ||
|
||
:: Copyright 2017 resin.io | ||
:: | ||
:: Licensed under the Apache License, Version 2.0 (the "License"); | ||
:: you may not use this file except in compliance with the License. | ||
:: You may obtain a copy of the License at | ||
:: | ||
:: http://www.apache.org/licenses/LICENSE-2.0 | ||
:: | ||
:: Unless required by applicable law or agreed to in writing, software | ||
:: distributed under the License is distributed on an "AS IS" BASIS, | ||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
:: See the License for the specific language governing permissions and | ||
:: limitations under the License. | ||
|
||
IF "%APPVEYOR_REPO_BRANCH%"=="" ( | ||
ECHO This script is only meant to run in Appveyor CI 1>&2 | ||
EXIT /B 1 | ||
) | ||
|
||
call make installers-all || ( EXIT /B 1 ) | ||
|
||
EXIT /B %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
### | ||
# Copyright 2017 resin.io | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
### | ||
|
||
set -e | ||
set -u | ||
|
||
if [ -z "$TRAVIS_OS_NAME" ]; then | ||
echo "This script is only meant to run in Travis CI" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
./scripts/build/check-dependency.sh make | ||
|
||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
./scripts/build/docker/run-command.sh \ | ||
-r "$TARGET_ARCH" \ | ||
-s "$(pwd)" \ | ||
-c 'make installers-all' | ||
else | ||
make installers-all | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters