diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-09-12 11:06:47 +0200 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-12 12:06:47 +0300 |
commit | 205b8613a89b1a3c1d9c5a9f457dc1295faf0c7f (patch) | |
tree | 8caa5e730689044dcb1e527af26e052f9778c6bc /.travis | |
parent | 0d7b7affbc58ff8d8a65cd291d39c8dcdf3a9a5a (diff) |
[cleanup crusade] travis build stages (#4142)
* :construction: build stages
* add linters
* move addons to install
* release
* meaningful javascript linting
* css linter
* move artifact creation to separate script
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/create_artifacts.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.travis/create_artifacts.sh b/.travis/create_artifacts.sh new file mode 100755 index 0000000000..6e76807d40 --- /dev/null +++ b/.travis/create_artifacts.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +if [ ! -f .gitignore ] +then + echo "Run as ./travis/$(basename $0) from top level directory of git repository" + exit 1 +fi + +eval "$(ssh-agent -s)" +./.travis/decrypt-if-have-key decb6f6387c4 +export KEYSERVER=ipv4.pool.sks-keyservers.net +./packaging/gpg-recv-key phil@firehol.org "0762 9FF7 89EA 6156 012F 9F50 C406 9602 1359 9237" +./packaging/gpg-recv-key costa@tsaousis.gr "4DFF 624A E564 3B51 2872 1F40 29CA 3358 89B9 A863" +# Run the commit hooks in case the developer didn't +git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ./packaging/check-files - +fakeroot ./packaging/git-build +# Make sure stdout is in blocking mode. If we don't, then conda create will barf during downloads. +# See https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959 for details. +python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);' +# make self-extractor +./makeself/build-x86_64-static.sh +for i in *.tar.*; do md5sum -b $i > $i.md5; sha512sum -b $i > $i.sha; done +for i in *.gz.run; do md5sum -b $i > $i.md5; sha512sum -b $i > $i.sha; done +./.travis/deploy-if-have-key |