Skip to content

Instantly share code, notes, and snippets.

View jgsogo's full-sized avatar
🎯
Focus

Javier G. Sogo jgsogo

🎯
Focus
View GitHub Profile
cmake_minimum_required(VERSION 2.8.6)
project(VIGCOIN)
# Adding conan support
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
set(VERSION "0.1")
# $Format:Packaged from commit %H%nset(COMMIT %h)%nset(REFS "%d")$
@jgsogo
jgsogo / pck_config_file.py
Created November 28, 2018 15:21
Pkg-Config file parser (and tests)
# coding=utf-8
import os
from collections import OrderedDict
from conans.errors import ConanException
class PkgConfigFile(object):
"""
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from datetime import datetime
import random
# If modifying these scopes, delete the file token.pickle.
@jgsogo
jgsogo / conan_clion_plugin_CLA.md
Created August 14, 2019 09:17
CLA for Conan CLion plugin

Conan CLion plugin - Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan CLion plugin (https://github.com/conan-io/conan-clion-plugin)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.
@jgsogo
jgsogo / lockfile_buildinfo.py
Last active November 14, 2019 23:35
Parse Conan lockfile and create buildInfo for Artifactory
# coding=utf-8
# Build definition: https://github.com/jfrog/build-info
import argparse
import datetime
import json
import os
import re
import sys
@jgsogo
jgsogo / multiple-values.patch
Created November 4, 2019 17:59
This is patch that might be used in https://github.com/conan-io/conan/pull/6014. Remove if merged.
diff --git a/conans/client/cache/cache.py b/conans/client/cache/cache.py
index 52a6803f6..eede92fc9 100644
--- a/conans/client/cache/cache.py
+++ b/conans/client/cache/cache.py
@@ -124,7 +124,7 @@ class ClientCache(object):
return join(self.cache_folder, ARTIFACTS_PROPERTIES_FILE)
def read_artifacts_properties(self):
- ret = {}
+ ret = []
@jgsogo
jgsogo / docker-compose.yml
Created November 7, 2019 16:32
Jenkins + Artifactory | Docker compose
version: "3.3"
services:
jenkins:
image: visibilityspots/jenkins-docker
networks:
- jenkins_artifactory
ports:
- "49001:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
[requires]
middle/test
middle2/test