Skip to content

Commit

Permalink
CI: Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Jan 12, 2018
1 parent d842043 commit 7f2648a
Showing 1 changed file with 107 additions and 120 deletions.
227 changes: 107 additions & 120 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,125 +1,112 @@
version: 2.0

jobs:

"mint-18":
docker:
- image: linuxmintd/linuxmint-sylvia
steps:
- checkout

- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i

- run:
name: Build Project
command: mint-build -i

- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
"mint-19":
docker:
- image: linuxmintd/linuxmint-tara
steps:
- checkout

- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i

- run:
name: Build Project
command: mint-build -i

- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
"lmde-3":
docker:
- image: linuxmintd/linuxmint-cindy
steps:
- checkout

- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i

- run:
name: Build Project
command: mint-build -i

- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
"mint-18":
docker:
- image: linuxmintd/linuxmint-sylvia
steps:
- checkout
- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i
- run:
name: Build Project
command: mint-build -i
- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
"mint-19":
docker:
- image: linuxmintd/linuxmint-tara
steps:
- checkout
- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i
- run:
name: Build Project
command: mint-build -i
- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
"lmde-3":
docker:
- image: linuxmintd/linuxmint-cindy
steps:
- checkout
- run:
name: Build Dependency Xapps
command: mkdir -p /dependencies && cd /dependencies && mint-build xapps -i
- run:
name: Build Project
command: mint-build -i
- run:
name: Prepare Packages
command: |
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
mkdir /${RELEASE}
mv /root/*.deb /${RELEASE}/
mv /dependencies/*/*.deb /${RELEASE}/
git log > /${RELEASE}/git.log
cd /
tar cvf ${RELEASE}.tar ${RELEASE}
gzip ${RELEASE}.tar
- run:
name: Deploy to Github
command: |
if [ -z $CI_PULL_REQUEST ]; then
wget https://github.com/tcnksm/ghr/releases/download/v0.5.4/ghr_v0.5.4_linux_amd64.zip
unzip ghr_v0.5.4_linux_amd64.zip
TAG=`git rev-parse --abbrev-ref HEAD`.$CIRCLE_JOB
RELEASE="${CIRCLE_PROJECT_REPONAME}_${CIRCLE_JOB}_${CIRCLE_SHA1}"
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace $TAG /${RELEASE}.tar.gz
./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -recreate -b "Latest unstable packages" $TAG /${RELEASE}.tar.gz
fi
workflows:
version: 2
build:
jobs:
- "mint-18"
- "mint-19"
- "lmde-3"
version: 2
build:
jobs:
- "mint-18"
- "mint-19"
- "lmde-3"

0 comments on commit 7f2648a

Please sign in to comment.