Skip to content

Commit fc847f7

Browse files
committed
Convert to Bintray
1 parent c2ad08a commit fc847f7

File tree

5 files changed

+58
-27
lines changed

5 files changed

+58
-27
lines changed

Diff for: .travis.yml

+49-15
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,62 @@
11
language: c
2-
os: linux
3-
dist: xenial
4-
sudo: required
52

6-
compiler:
7-
- m68k-atari-mint-gcc
3+
addons:
4+
apt:
5+
sources:
6+
- sourceline: 'ppa:vriviere/ppa'
7+
packages:
8+
- binutils-m68k-atari-mint
9+
- gcc-m68k-atari-mint
10+
- mintbin-m68k-atari-mint
811

12+
env:
13+
global:
14+
- PROJECT_REPO=$(echo "${TRAVIS_REPO_SLUG}" | cut -d '/' -f 1)
15+
- PROJECT_NAME=$(echo "${TRAVIS_REPO_SLUG}" | cut -d '/' -f 2)
16+
- PROJECT_VERSION="0.44.0"
17+
- INSTALL_DIR="/tmp/${PROJECT_NAME}"
18+
- DEPLOY_DIR="/tmp/${PROJECT_NAME}-deploy"
19+
- DEPLOY_ARCHIVE="tar.bz2"
20+
- BINTRAY_USER="mikrosk"
21+
# BINTRAY_API_KEY is defined in Travis Settings of freemint/gemlib
22+
23+
# If before_install, install or before_script return a non-zero exit code, the build is errored and stops immediately.
924
before_install:
10-
- export USER=$(echo "${TRAVIS_REPO_SLUG}" | cut -d '/' -f 1)
11-
- export BASE_RAW_URL="https://raw.githubusercontent.com/${USER}"
25+
- wget -q -O - https://github.com/freemint/travis-scripts/archive/master.tar.gz | tar xzf - --strip-components=1 -C .travis
26+
- if [ -x .travis/before_install.sh ]; then ./.travis/before_install.sh; else true; fi
27+
28+
install:
29+
- if [ -x .travis/install.sh ]; then ./.travis/install.sh; else true; fi
1230

13-
- wget -O .travis/download_prerequisities.sh "${BASE_RAW_URL}/travis-scripts/master/download_prerequisities.sh"
14-
- sh ./.travis/download_prerequisities.sh
15-
- sh ./.travis/install-cross-mint.sh gcc-m68k-atari-mint binutils-m68k-atari-mint mintlib-m68k-atari-mint > /dev/null
16-
1731
before_script:
18-
- . ./.travis/setup_env.sh
32+
- if [ -x .travis/before_script.sh ]; then ./.travis/before_script.sh; else true; fi
1933

34+
# If script returns a non-zero exit code, the build is failed, but continues to run before being marked as failed.
2035
script:
21-
- sh ./.travis/build.sh "${PWD}/.travis/tmp" "${PWD}/.travis/out"
36+
- if [ -x .travis/script.sh ]; then ./.travis/script.sh; else true; fi
37+
# The exit code of after_success, after_failure, after_script and subsequent stages do not affect the build result.
38+
# However, if one of these stages times out, the build is marked as a failure.
39+
after_success:
40+
- if [ -x .travis/after_success.sh ]; then ./.travis/after_success.sh; else true; fi
41+
after_failure:
42+
- if [ -x .travis/after_failure.sh ]; then ./.travis/after_failure.sh; else true; fi
43+
44+
# A non-zero exit code in this phase will mark the build as errored.
45+
before_deploy:
46+
- if [ -x .travis/before_deploy.sh ]; then ./.travis/before_deploy.sh; else true; fi
2247

2348
deploy:
24-
provider: script
49+
provider: bintray
50+
file: ".travis/bintray.desc"
51+
user: "${BINTRAY_USER}"
52+
key: "${BINTRAY_API_KEY}"
2553
skip_cleanup: true
26-
script: sh ./.travis/deploy.sh "${PWD}/.travis/out" $encrypted_184ce553573b_key $encrypted_184ce553573b_iv
2754
on:
55+
branch: master
2856
repo: freemint/gemlib
57+
58+
after_deploy:
59+
- if [ -x .travis/after_deploy.sh ]; then ./.travis/after_deploy.sh; else true; fi
60+
61+
after_script:
62+
- if [ -x .travis/after_script.sh ]; then ./.travis/after_script.sh; else true; fi

Diff for: .travis/build.sh

-11
This file was deleted.

Diff for: .travis/deploy-key.enc

-3.17 KB
Binary file not shown.

Diff for: .travis/script.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -eux
2+
# -e: Exit immediately if a command exits with a non-zero status.
3+
# -u: Treat unset variables as an error when substituting.
4+
# -x: Display expanded script commands
5+
6+
make && make PREFIX="${INSTALL_DIR}" install
7+
8+
find "${INSTALL_DIR}" -type f \( -name '*.a' -o -name '*.o' \) -exec m68k-atari-mint-strip -S -X -w -N '.L[0-9]*' {} \;

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[![Build Status](https://travis-ci.org/freemint/gemlib.svg?branch=master)](https://travis-ci.org/freemint/gemlib)
1+
[![Build Status](https://travis-ci.org/freemint/gemlib.svg?branch=master)](https://travis-ci.org/freemint/gemlib) [ ![Download](https://api.bintray.com/packages/freemint/freemint/gemlib/images/download.svg) ](https://bintray.com/freemint/freemint/gemlib/_latestVersion)

0 commit comments

Comments
 (0)