Skip to content

Instantly share code, notes, and snippets.

@mustafa-travisci
mustafa-travisci / .travis.yml
Created December 18, 2019 09:59
Allow failure example
os: linux
dist: xenial
language: php
before_script:
- rm composer.lock
- travis_retry composer update --prefer-dist $DEPENDENCIES
jobs:
include:
@mustafa-travisci
mustafa-travisci / .travis.yml
Created February 27, 2020 11:10
Conditional Deploy in Travis CI
env:
global:
- CC_TEST_REPORTER_ID=b80cc9abeed21ed522cf2d3831da7ed52dfd6e18bdce2ade4125fd033e96a951
language: ruby
cache:
bundler: true
directories:
- $HOME/docker_images
@mustafa-travisci
mustafa-travisci / .travis.yml
Created February 28, 2020 11:21
Job Conditions
language: node_js
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.0
- export PATH="$HOME/.yarn/bin:$PATH"
cache:
yarn: true
directories:
- node_modules
notifications:
email: false
@mustafa-travisci
mustafa-travisci / .travis.yml
Created March 12, 2020 05:53
10 concurrent jobs test
language: node_js
node_js:
- '7'
env:
matrix:
- COW_WORD=a
- COW_WORD=v
- COW_WORD=b
- COW_WORD=q
- COW_WORD=w
@mustafa-travisci
mustafa-travisci / handling_multiple_github_accounts.md
Created March 14, 2020 09:04 — forked from Jonalogy/handling_multiple_github_accounts.md
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@mustafa-travisci
mustafa-travisci / .travis.yml
Created July 21, 2020 12:38
Correction on .travis.yml file.
# .travis.yaml
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
@mustafa-travisci
mustafa-travisci / .travis.yml
Last active March 11, 2021 14:38
Config of multiVersion-Rust and OS Matrix
---
language: rust
rust:
- stable
- beta
- nightly
os:
- linux
@mustafa-travisci
mustafa-travisci / .travis.yml
Last active March 29, 2021 06:17
PostgreSQL12 on Xenial
language: shell
dist: xenial
env:
global:
- PGPORT=5433
- PGUSER=travis
addons:
apt:
@mustafa-travisci
mustafa-travisci / .travis.yml
Last active March 30, 2021 10:59
PostgreSQL12 on Bionic
---
language: shell
dist: bionic
env:
global:
- PGPORT=5433
- PGUSER=travis
addons:
@mustafa-travisci
mustafa-travisci / .travis.yml
Created April 2, 2021 13:47
MongoDB4.4 on Focal
---
language: node_js
os: linux
dist: focal
node_js:
- '12'
addons:
apt:
sources:
- sourceline: deb https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse