-
Notifications
You must be signed in to change notification settings - Fork 7
/
travisScript.sh
65 lines (59 loc) · 1.71 KB
/
travisScript.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
#!/bin/bash
setup_git() {
cd ../
ls
git clone https://GsrsBot:${GIT_ACCESS_TOKEN}@github.com/ncats/gsrs-ci.git
ls
cd gsrs-ci
ls
git status
git fetch
git branch -a
git status
git checkout fda_staged_sync
git pull
git merge origin/fda
cd gsrs-ci
cp -r frontend/src/main/resources/static/substanceRelationshipVisualizer ./
rm -rf frontend/src/main/resources/static
mkdir frontend/src/main/resources/static
cp -r ../GSRSFrontend/dist/browser/* frontend/src/main/resources/static/
cp -r ./substanceRelationshipVisualizer frontend/src/main/resources/static/
rm -rf ./substanceRelationshipVisualizer
git status
git add frontend/src/main/resources/static
git add -u
git commit -m "frontend commit ${TRAVIS_COMMIT} build of branch ${TRAVIS_BRANCH} "
git status
ls
echo "pushing"
git push -u origin fda_staged_sync
cd ../
rm -rf gsrs-ci
ls -l
git clone https://GsrsBot:${GIT_ACCESS_TOKEN}@github.com/ncats/gsrs-ci.git
cd gsrs-ci
git status
git fetch
git branch -a
git status
git checkout master_staged_sync
git pull
git merge origin/master
cp -r frontend/src/main/resources/static/substanceRelationshipVisualizer ./
cp frontend/src/main/resources/static/assets/data/config.json ./
rm -rf frontend/src/main/resources/static
mkdir frontend/src/main/resources/static
cp -r ../GSRSFrontend/dist/browser/* frontend/src/main/resources/static/
cp -r ./substanceRelationshipVisualizer frontend/src/main/resources/static/
cp ./config.json frontend/src/main/resources/static/assets/data/
rm ./config.json
rm -rf ./substanceRelationshipVisualizer
git add frontend/src/main/resources/static
git add -u
git commit -m "frontend commit ${TRAVIS_COMMIT} build of branch ${TRAVIS_BRANCH} "
git status
ls
git push -u origin master_staged_sync
}
setup_git