Commit 0f0b894a authored by Jose Tiago Macara Coutinho's avatar Jose Tiago Macara Coutinho
Browse files

Second try at SVN proxy

parent 852402f5
Pipeline #844 passed with stages
in 1 minute and 25 seconds
before_script:
- source /opt/miniconda/bin/activate
- mkdir -p ~/.subversion
- echo -e "[global]\nhttp-proxy-host=proxy.esrf.fr\nhttp-proxy-port=3128" > ~/.subversion/servers
build:
stage: build
script:
- cd $CI_COMMIT_REF_NAME
- conda build . --prefix-length=80 --output-folder=../dist/ --python=2.7 --channel=file://conda
# - conda build . --prefix-length=80 --output-folder=../dist/ --python=3.6 --channel=file://conda
- conda build . --prefix-length=80 --output-folder=../dist --channel=file://conda
artifacts:
paths:
- dist/
......
CXX ?= c++
PREFIX ?= /usr/local
CLASS = Serial
ifdef PREFIX
INCDIR = -I$(PREFIX)/include -I$(PREFIX)/include/tango
LIBDIR = -L$(PREFIX)/lib
else
INCDIR =
LIBDIR =
endif
OBJ = $(CLASS).o \
$(CLASS)Class.o \
$(CLASS)StateMachine.o \
......@@ -18,11 +11,12 @@ OBJ = $(CLASS).o \
DEPS = $(CLASS).h \
$(CLASS)Class.h
CXXFLAGS = -g -std=c++0x -D_REENTRANT -I. $(INCDIR)
CXXFLAGS = -g -std=c++0x -D_REENTRANT \
-I. -I$(PREFIX)/include -I$(PREFIX)/include/tango
LFLAGS = -ltango -llog4tango \
LFLAGS = -L$(PREFIX)/lib \
-ltango -llog4tango \
-lomniORB4 -lomniDynamic4 -lomnithread -lCOS4 -lzmq \
$(LIBDIR)
%.o: %.cpp $(DEPS)
$(CXX) $(CXXFLAGS) -c -o $@ $<
......@@ -31,7 +25,7 @@ $(CLASS): $(OBJ)
$(CXX) -o $(CLASS) $^ $(LFLAGS)
install: $(CLASS)
cp $(CLASS) /usr/local/bin
cp $(CLASS) $(PREFIX)/bin
.PHONY: install clean
......
export CC=${PREFIX}/bin/gcc
export CXX=${PREFIX}/bin/g++
mkdir -p ~/.subversion
cp svn_servers ~/.subversion/servers
cd src
cp ${RECIPE_DIR}/Makefile .
make -j4
make install
cp ${RECIPE_DIR}/Makefile src/
make -C src/ -j4
make -C src/ install
[global]
http-proxy-host = proxy.esrf.fr
http-proxy-port = 3128
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment