Skip to content

Commit 1338f73

Browse files
author
Daniela Butano
committed
working on CI scripts
1 parent 77cd942 commit 1338f73

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/im-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ jobs:
4242
sudo apt-get install -y libpq-dev postgresql-client
4343
sudo service postgresql start
4444
- name: Run unit tests
45-
run: ./config/travis/init-solr.sh && ./config/travis/init.sh && python setup.py test && python setup.py livetest
45+
run: |
46+
./config/ci/init-solr.sh
47+
./config/ci/init.sh
48+
python setup.py test
49+
python setup.py livetest
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ fi
1212
# Pull in the server code.
1313
git clone --single-branch --depth 1 https://github.com/intermine/intermine.git server
1414

15-
export PSQL_USER=postgres
15+
export PSQL_USER=test
16+
export PSQL_PWD=test
17+
export KEYSTORE=${PWD}/keystore.jks
18+
19+
echo "#---> Running unit tests"
20+
21+
sudo -u postgres createuser test
22+
sudo -u postgres psql -c "alter user test with encrypted password 'test';"
1623

1724
# Set up properties
1825
PROPDIR=$HOME/.intermine
1926
TESTMODEL_PROPS=$PROPDIR/testmodel.properties
20-
SED_SCRIPT='s/PSQL_USER/postgres/'
27+
SED_SCRIPT='s/PSQL_USER/test/'
2128

2229
mkdir -p $PROPDIR
2330

0 commit comments

Comments
 (0)