Skip to content

Commit ebec0e4

Browse files
author
Daniela Butano
authored
Merge pull request #85 from danielabutano/ci
CI with github workflows
2 parents 77cd942 + 8f06948 commit ebec0e4

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/im-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ 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: ./config/ci/init-solr.sh && ./config/ci/init.sh && python setup.py test && 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)