Skip to content

Instantly share code, notes, and snippets.

@cotsog
cotsog / .travis.yml
Created September 24, 2019 20:31
Cache APT packages
# .travis.yml
# inspired by https://stackoverflow.com/a/52446551
sudo: required
dist: trusty
language: scala
scala: 2.12.8
before_cache:
echo '{}' | sudo tee /etc/docker/daemon.json
### Keybase proof
I hereby claim:
* I am cotsog on github.
* I am cotsog (https://keybase.io/cotsog) on keybase.
* I have a public key ASDK5fB7mX1h5XHHh16yJJlvHl5wQbPK14qHF1sgp0XZHgo
To claim this, I am signing this object:
@cotsog
cotsog / Dockerfile
Created May 15, 2018 18:31
Customizing a Travis CI Docker container
FROM travisci/ci-garnet:packer-1512502276-986baf0
RUN echo installing my own stuff
@cotsog
cotsog / .travis.yml
Created May 9, 2018 16:10
Opt-in recipe to run `apt-get update` in your Travis CI build
# Add this snippet to your .travis.yml file
addons:
apt:
update: true
@cotsog
cotsog / .travis.yml
Created May 4, 2016 15:20
Cache PhantomJS
cache:
directories:
- travis-phantomjs
before_install:
- mkdir travis-phantomjs || true
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
@cotsog
cotsog / travis.yml
Created February 10, 2016 02:26 — forked from sheki/travis.yml
pbcopy
sudo: false
language: node_js
env:
- BRIGHT_ENV=travis
before_install:
- rm -f node_modules
@cotsog
cotsog / .travis.yml
Created September 17, 2015 13:00
.travis.yml for gcc-4.9 compiler support on Travis CI
before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
@cotsog
cotsog / .travis.yml
Created September 4, 2015 20:04
Custom MongoDB version on container infrastructure
sudo: false
env:
global:
- MONGODB_VERSION=2.6.10
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH
- mkdir -p data/db
- mongod --dbpath=data/db &
@cotsog
cotsog / com.apple.dt.instruments.process.analysis.plist
Created August 31, 2015 13:59
Appium Instruments authorization fix
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>allow-root</key>
<true/>
<key>authenticate-user</key>
<true/>
<key>class</key>
<string>user</string>