-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·94 lines (83 loc) · 2.33 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
function load_env() {
if [ -f .env ]; then
while IFS= read -r line; do
if [[ $line == \#* ]]; then
continue
fi
key=$(echo "$line" | cut -d'=' -f1)
value=$(echo "$line" | cut -d'=' -f2)
export "$key"="$value"
done < .env
fi
}
conan remote remove Epitech-Mirroring
conan remove '*' -c
conan cache clean '*'
conan profile detect --force
# Common
cd ./src/common && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Physics
cd ./src/physics && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Graphics
cd ./src/graphics && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Engine
cd ./src/engine && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Graphics 3D
cd ./src/graphics3D && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Engine 3D
cd ./src/engine3D && \
mkdir -p "build" && \
cd "build" && \
conan install .. --build=missing && \
cd .. && \
conan create . --build=missing && \
conan create . -s:a build_type=Debug --build=missing &&
cd ../../
# Set-up the remote
conan remote add Epitech-Mirroring https://nexus.place2die.com/repository/Epitech-Mirroring/
load_env
echo "Logging in to Epitech-Mirroring with user $NEXUS_USER"
conan remote login Epitech-Mirroring "$NEXUS_USER" -p="$NEXUS_PASSWORD"
# Upload
conan upload stellar-forge-common -r=Epitech-Mirroring
conan upload stellar-forge-graphics -r=Epitech-Mirroring
conan upload stellar-forge-physics -r=Epitech-Mirroring
conan upload stellar-forge -r=Epitech-Mirroring
conan upload stellar-forge-graphics-3d -r=Epitech-Mirroring
conan upload stellar-forge-3d -r=Epitech-Mirroring